This repository was archived by the owner on Nov 2, 2020. It is now read-only.

Description
I wanted to handle first message differently then the rest:
const messageHandler = message => {
handleDifferently(message);
ws.onmessage = anotherMessageHandler;
};
ws.onmessage = messageHandler;
cWS does not support multiple listeners for the same event. Old listener for 'message' event will be overwritten
Expected: no warning issued