Closed tomvdb closed 1 year ago
I had the same problem, the solution I used was to use a "channel" on the web socket address. So in your example above, if you can, change the address in this code and the javascript to be:
sockurl = "ws://" + "127.0.0.1:8089/ws";
Hello and thank you for using WebsocketsSimple! I have fixed this bug and tested successfully with your client. The code is commit and new packages are available. Please give it a try and let me know if you have any other problems, questions, or suggestions for improvements. Thanks again for using WebsocketsSimple!
I'm trying to to a simple websocket server and have some javascript from a website connect to it. Server starts fine, but when the client tries to connect then I get a WsServer_ErrorEvent triggered with the message:
Error Event: Length cannot be less than zero. (Parameter 'length')
This is my ws server setup:
This is my javascript code for connection:
Server starts fine, and I get the error event when my client tries to connect. Am I missing an important settings?
Thanks!