[Solved] Photon 3 - Viking Demo and JavaScript SDK
So I got the Viking demo working. Thanks again to dreamora and Boris btw.
And then I thought I would try out the JavaScript SDK and see if I could get it to run. While I did get it to run, I notice that my Viking demo no longer works.
Is it possible to have both running at the same time on the same server?
And then I thought I would try out the JavaScript SDK and see if I could get it to run. While I did get it to run, I notice that my Viking demo no longer works.
Is it possible to have both running at the same time on the same server?
0
Comments
-
In the default PhotonServer.config you have two profiles - two set up ports, protocols(listeners) and
applications:
1) Instance1
2) Loadbalancing
For the VikingDemo and all Photon Networking related Apps you start 2)
For the Javascript SDK ( and our other demos) you start 1)
The Javascript SDK requires
a) "WebSocketListener" on port 9090
and
b) the "LiteWebSockets" Application
What you need to do is to copy the Websockets configuration from Instance1 to InstanceLoadBalancing
and start InstanceLoadBalancing.<!-- WebSocket (and Flash-Fallback) compatible listener --> <WebSocketListeners> <WebSocketListener IPAddress="0.0.0.0" Port="9090" DisableNagle="true" InactivityTimeout="100000" Application="LiteWebSockets"> </WebSocketListener> </WebSocketListeners>
<!-- Websockets Application --> <Application Name="LiteWebSockets" BaseDirectory="LiteWebSockets" Assembly="Lite" Type="Lite.LiteApplication"> </Application>
0 -
Thanks Philip, I'll try that.
I am really impressed with Photon 3 so far. Overall, it's looking really solid.0 -
Ok, that worked.
Thanks!0