Connection from non-Primus client
See original GitHub issueWondering if it is possible to connect to a Primus server from a non-Primus client, namely a web socket implementation running in another language, like C#. (This is for a Unity3D project). I have a Primus server running (implemented in actionheroJS) and a browser client can connect communicate with the server. The clients we try never seem to connect to Primus.
I also can create a socket.io
(v1.2) server and talk to it with a socket.io-client
(v1.2). However, that same socket.io-client
never connects to my Primus server. I have tried using the transport ‘socket.io’ and ‘engine.io’. The C# client can connect the socket.io
server, so I figure the socket.io-client
is a good example for javascript.
Is it possible to connect to a Primus server from another client, like socket.io-client
or engine.io-client
?
As an example, here is a gist. Client just does not connect to my primus server.
Issue Analytics
- State:
- Created 9 years ago
- Comments:20 (11 by maintainers)
Top GitHub Comments
@sailxjx Fixed? There is nothing fix here. Just implement the required heartbeats and be done with it.
@FWAlex no there isn’t a specific protocol. I assume you are using a WebSocket client. By default messages are JSON encoded so on the client you should receive a string.