gjw80
gjw80

Reputation: 1078

Socket.io + the various 'websocket writing' values?

In the debug of my socket.io app I'm seeing several "websocket writing: 1", "websocket writing: 2", "websocket writing: 5" messages. I've been looking for documentation on what these values represent but haven't found anything useful. Anyone with insight/documentation on these would be appreciated.

Upvotes: 0

Views: 694

Answers (1)

SLaks
SLaks

Reputation: 887767

These are packet codes.
You can see their values in the source:

var packets = exports.packets = {
      'disconnect': 0
    , 'connect': 1
    , 'heartbeat': 2
    , 'message': 3
    , 'json': 4
    , 'event': 5
    , 'ack': 6
    , 'error': 7
    , 'noop': 8
  }

Upvotes: 3

Related Questions