problem with javascript sdk

Options
cmb
cmb
edited March 2012 in Photon Server
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!

Comments

  • [Deleted User]
    Options
    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>
    ...
    
  • dreamora
    Options
    Also ensure that you startup Instance1, LoadBalancing is not supported by the websocket client sdk atm
  • [Deleted User]
    Options
    That's right, thanks @dreamora!