-
Notifications
You must be signed in to change notification settings - Fork 121
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
server.on("connection", ...) returns the server instance instead of the client socket instance #72
Comments
@brian-mann Sorry for the delay in getting back to you on this and thanks for opening the issue. Could you attach the test that you are trying to write so I can use that as a test case? |
This is still true, and for WebSocket as well. To be able to work with apollo subscriptions-transport-ws ( apollographql/subscriptions-transport-ws#374 ) I've created a hacky fork ( master...lgandecki:master ) for now, since it looks like you are rewriting this significantly I didn't think it was worth adding tests around it (although I haven't broken any). Could you tell me a bit what's your plan here? Are you going to push with the rewrite? Or have you decided to stay with the current architecture? |
Any updates on this? |
Per this library it doesn't seem possible to simulate socket.io clients emitting events.
I can only emit events from the server.
In my code, I attach event listeners to the socket which connected, and I'm trying to simulate those. Is this possible using another method?
The text was updated successfully, but these errors were encountered: