problem with javascript sdk
Options
Hi guys,
I've downloaded the most recent server build (ExitGames-Photon-Server-SDK_v3-0-19-2868-RC8), and the most recent version of Javascript client (Photon-JavaScript_v-3-0-0-3-Beta_SDK), and unfortunately I can't get the latter to connect to the former on my local host (while C-client connects without any problems). Here are the logs from the debug panel:
myApp - URI field entries: [url=ws://localhost:5055]ws://localhost:5055[/url]
PhotonPeer - Options: {"port":"5055","websocketSwfLocation":".","timeout":10000,"connectTimeout":10000,"isDebugging":true}
PhotonPeer[connect] - Available transport/s: websocket, flashsocket
PhotonPeer - Options: {"port":"5055","isDebugging":true,"timeout":10000}
PhotonPeer[connect] - Opening socket to host: localhost, port:5055 ...
PhotonPeer[_onError] - Connection error: undefined
PhotonPeer[_dispatch] - No handler for event "evt_error" registered.
Do you happen to have any advice?
Thanks!
I've downloaded the most recent server build (ExitGames-Photon-Server-SDK_v3-0-19-2868-RC8), and the most recent version of Javascript client (Photon-JavaScript_v-3-0-0-3-Beta_SDK), and unfortunately I can't get the latter to connect to the former on my local host (while C-client connects without any problems). Here are the logs from the debug panel:
myApp - URI field entries: [url=ws://localhost:5055]ws://localhost:5055[/url]
PhotonPeer - Options: {"port":"5055","websocketSwfLocation":".","timeout":10000,"connectTimeout":10000,"isDebugging":true}
PhotonPeer[connect] - Available transport/s: websocket, flashsocket
PhotonPeer - Options: {"port":"5055","isDebugging":true,"timeout":10000}
PhotonPeer[connect] - Opening socket to host: localhost, port:5055 ...
PhotonPeer[_onError] - Connection error: undefined
PhotonPeer[_dispatch] - No handler for event "evt_error" registered.
Do you happen to have any advice?
Thanks!
0
Comments
-
Unless you have changed it Photon's standard port for Websockets is 9090.
Please also verify you have a WebSocketListener in your PhotonServer.config bound to your Websocket listening app, e.g.<Configuration> <Instance1 ...> <WebSocketListeners> <WebSocketListener IPAddress="0.0.0.0" Port="9090" DisableNagle="true" InactivityTimeout="10000" OverrideApplication="Lite"> </WebSocketListener> </WebSocketListeners> ...
0 -
Also ensure that you startup Instance1, LoadBalancing is not supported by the websocket client sdk atm0
-
That's right, thanks @dreamora!0