Friday, 26 May 2017

NodeJS - Socket IO RangeError

I'm getting this error when I tried to emit a data to socket.

RangeError: Maximum call stack size exceeded
    at _encode (/Users/emrealparslan/Projects/project/node_modules/notepack.io/lib/encode.js:56:17)

Here is the code causes that error:

global
      .socket
      .of('/web')
      .to(ticket.shop._id)
      .emit('ticket', { ticket: ticket });

I'm using "socket.io": "2.0.1"



via Emre Alparslan

No comments:

Post a Comment