-
Notifications
You must be signed in to change notification settings - Fork 25
Not able to receive messages from the clients #36
Comments
After some test, I figured out the problem was introduced by twisted 16.3.0 release. There is no problem with version 16.2.0 and earlier. |
Hey @pliu6 , I think I may have solution to the problem... at least, it is working for me with Twisted 17.5.0. At the bottom of the file in txsockjs/protocols/websockets there is a class called WebSocket.
I replace the above code with:
And everything starts to work fine. (Alternatively you can override the method by using your own subclasses based on classes from the project, and overriding a few methods) I'm not entirely sure what's going on here, but if anyone can give me any tips about how to get this into the project (like a test suite to run to ensure I didn't break something?), that would be awesome. |
This change just introduces exception. Websocket handshake fails, and client switches to different transport (xhr-streaming in my case), which works fine. |
Thanks ksvintsov, the patch worked for my version of Twisted. Any idea when it might get into pypi? |
When we use twisted 16.5.0 or 16.6.0, the server can not receive messages. Sending messages works fine.
I created a test project to reproduce the issues:
https://github.com/pliu6/sockjs-test
The text was updated successfully, but these errors were encountered: