Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default, all REST queries follow to the local address: http://localhost:90918081/apps/EchoApp

The invocations of REST methods look as follows then:

  • http://localhost:90918081/apps/EchoApp/connect
  • http://localhost:90918081/apps/EchoApp/playStream
  • http://localhost:90918081/apps/EchoApp/publishStream

and so on.

This happens because the appKey=defaultApp parameter is sent when connection to the WCS server, and the default app for this key is this URL: http://localhost:90918081/apps/EchoApp

 


 To change these settings, enter to the command line interface of the WCS server core via SSH:

...

This command creates a new URL, http://mywebserver.com/rest, and assigns this URL for usage if a client sent the appKey=’myAppKey’ during connection.

...

Flashphoner.createSession({appKey:’myAppKey’...});

http://mywebserver.com/rest/connect

By default, server application is created without any REST methods, then methods should be added to application with the following command (connect for example):

Code Block
languagebash
themeRDark
%add app-rest-method MyAppKey connect

If backend server will handle all possible REST methods, then all methods should be added with the following command:

Code Block
languagebash
themeRDark
%add app-rest-method -a MyAppKey