-
-
Notifications
You must be signed in to change notification settings - Fork 508
Uncaught error - 'not opened' #69
Comments
The issue is really in websocket-stream because it is not passing a callback to the Eventually, we can patch this in Mows, but I think @maxogden will accept a pull-request against websocket-stream. |
IIRC the callback to send was deprecated and that you should instead wait On Thu, Nov 7, 2013 at 10:24 AM, Matteo Collina [email protected]:
|
Yes. The problem is that we are writing after it's closed :(. I removed the callback approach and moved to checking |
Reinstalling Mosca should fix this, as a new patch version of websocket-stream has been published. Can you please confirm? |
I can happily confirm that new patch fixes the issue! |
Ok, closing! |
Mosca will occasionally crash with the following output:
Thrown when Mosca attempts to send data through a previously closed web-socket.
Adding a try{}catch{} in lib/client.js @ Line 274 will keep Mosca running:
The text was updated successfully, but these errors were encountered: