I am very new to NodeJS and Websockets, but i am trying to play with it.
NodeJS
Websockets
What i do is read incoming datas from Serial port, then send these dat
I think, you should remove the socket from your CLIENTS array on both close and error event. Otherwise it tries to send a message to a socket that is closed.
CLIENTS
close
error