Connection to custom server application
Options
Hi.
How can I connect to my custom server application throw JavaScript (HTML5) SDK? I cannot find information in documentation or client SDK.
this.peer = new Photon.PhotonPeer("ws://192.168.85.217:9090", '');
For example in .NET:
// connect
client.connected = false;
peer.Connect("192.168.85.217:4530", "MyCustomServerApplication");
Best regards.
How can I connect to my custom server application throw JavaScript (HTML5) SDK? I cannot find information in documentation or client SDK.
this.peer = new Photon.PhotonPeer("ws://192.168.85.217:9090", '');
For example in .NET:
// connect
client.connected = false;
peer.Connect("192.168.85.217:4530", "MyCustomServerApplication");
Best regards.
0
Comments
-
Hi,
Add app id to your url: "ws://192.168.85.217:9090/app-id"
Also make sure that there is no OverrideApplication=... attribute in <WebSocketListener> node of server config.0 -
Thank you!
Exactly what I`m looking for !
There is 2 way:
1) this.peer = new Photon.PhotonPeer("ws://192.168.85.217:9090/MyCustomServerApplication", '');
And comment or delete OverrideApplication attribute in <WebSocketListener> node of server config
2) this.peer = new Photon.PhotonPeer("ws://192.168.85.217:9090/", '');
But then OverrideApplication=MyCustomServerApplication in <WebSocketListener> node of server config0 -
Yes, you are right. If only one application on server, 2nd option may be more convenient.0