HenningM / express-ws

WebSocket endpoints for express applications
BSD 2-Clause "Simplified" License
878 stars 142 forks source link

-onOpen and OnMessage never gets fired #117

Open iasbm opened 5 years ago

iasbm commented 5 years ago

@HenningM

I have tried a lot of options by going through the issues...

I have even tried your https://github.com/HenningM/express-ws/blob/master/examples/simple.js

I could see the logs as follows...

middleware get route testing middleware socket testing

But i never get to see those console.log(msg) inside the below on message event

 ws.on('message', function(msg) {
    console.log(msg);
  });

While i appreciate the intention and effort you put into this framework, it is not serving its purpose at all