Node.js: how to fix error server error at Socket.onPacket

How to fix Node.js client connect_error:

    Error: server error at Socket.onPacket ( 
      at XHR.<anonymous> ( 
      at XHR.Emitter.emit ( 
      at XHR.Transport.onPacket ( 
      at callback ( 
      at Object.exports.decodePayload ( 
      at XHR.Polling.onData ( 
      at Request.<anonymous> ( 
      at Request.Emitter.emit ( 
      at Request.onData (

Main raison is mismatched versions of in client and server. You can choose the match JS client library at: or use / on your server eg:

Leave a Reply