Connection to custom server application

edited May 2014 in JavaScript
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.

Comments

  • vadimvadim admin
    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.
  • 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 config
  • vadimvadim admin
    Yes, you are right. If only one application on server, 2nd option may be more convenient.
Sign In or Register to comment.