You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While going through the WebSocket document, I attempted to run the given server.js file in Node.js.
I established the connection and sent a message.
But there was an error message.match is not a function which caused the program to close.
I inspected the error, the message variable is a Buffer object.
I fixed it by converting that into a String.