question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection from non-Primus client

See original GitHub issue

Wondering 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:open
  • Created 9 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
3rd-Edencommented, Sep 16, 2015

@sailxjx Fixed? There is nothing fix here. Just implement the required heartbeats and be done with it.

0reactions
lpincacommented, May 23, 2017

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Primus-websocket client side - Stack Overflow
1 Answer 1 ... You need to to specify a connection. var primus = Primus.connect('ws://localhost:8000');. Share.
Read more >
OWNER'S MANUAL - Primus Wind Power
Turn AIR “OFF” and contact Primus Wind Power Customer Service ... The recommended way to connect the turbine to your battery.
Read more >
Terms of Use - Primus
"You, Your, Yours" means the customer entering into this Agreement; ... ii) non-Primus equipment, systems, software and networks; and iii) access codes, ...
Read more >
primus - Bountysource
You could also extract the client script into it's own package and use wzrd.in ... if it is possible to connect to a...
Read more >
primus telecommunications group, incorporated - SEC.gov
Acquisition of customer list, financed by long-term obligations ... In June 1999, in connection with the Telegroup acquisition, the Company issued $45.5 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found