-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with qaap/rpc-websockets #604
Comments
Are you using Primus to connect to a plain WebSocket server? If so, you have to take into account:
|
Yes, I use it with a plain websocket server. is there a way to turn off the heartbeats? and I do use json parser, so this is not the problem. but the case I encountered is not in above 2 cases, it's clearly if I import rpc-websockets (which uses uws in its implement), the primus will fail to connect. else it has no problem. |
it's in a complex app, I tried, but failed to reproduce it with a simple short code. what I can tell, in my env, if I does included rpc-websockets, even does not really call the Websocket (of rpc-websockets), it will cause primus failure. and if I comment out the require line of importing rpc-websockets, the primus will works. |
Heartbeats can be disabled by setting the What I can suggest is to start a plain uws server, build the Primus client using the |
the connection is indeed connected, but the primus think it's not, due to
some strange conflict between the other library. either websockets or uws
as transformer results same.
2017-08-15 18:25 GMT+08:00 Luigi Pinca <notifications@github.com>:
… Heartbeats can be disabled by setting the pingInterval option to false.
You have to rebuild the client for changes to take effect.
What I can suggest is to start a plain uws server, build the Primus client
using the websockets transformer and use it to connect to the uws server
to see if the connection can be established.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#604 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAKsHRNPEAbNpxrjCq0CefrryVh8VVF9ks5sYXIIgaJpZM4O2_NY>
.
|
Yes this is expected as the uws transformer uses the websockets transformer as client. |
which indicated that I used wrong url in the case, sorry for the noise. |
Version:
npm newest
Environment:
OSX EL Caption
N/A
v6.11.1
Expected result:
Work as use primus only
Actual result:
Report timeout then reconnect and keep failing (it reported that, but indeed the connection looks ok by checking the real network connection)
Steps to reproduce:
import qaap/rpc-websockets into the same node app, and probably also use qaap/rpc-websockets to connect to somewhere, then the original primus working code will report failure because of some hidden conflict.
The text was updated successfully, but these errors were encountered: