Skip to content

Instantly share code, notes, and snippets.

@dopa
Created June 7, 2012 16:18
Show Gist options
  • Save dopa/2889830 to your computer and use it in GitHub Desktop.
Save dopa/2889830 to your computer and use it in GitHub Desktop.
console.log(io.sockets) inside route
{ manager:
{ server:
{ stack: [Object],
connections: 7,
allowHalfOpen: true,
_handle: [Object],
_events: [Object],
httpAllowHalfOpen: false,
cache: [Object],
settings: [Object],
redirects: {},
isCallbacks: {},
_locals: [Object],
dynamicViewHelpers: [Object],
errorHandlers: [],
route: '/',
routes: [Object],
router: [Getter],
_ns: [],
__usedRouter: true },
namespaces: { '': [Circular] },
sockets: [Circular],
_events:
{ 'set:transports': [Object],
'set:store': [Function],
'set:origins': [Function],
'set:flash policy port': [Function] },
settings:
{ origins: '*:*',
log: true,
store: [Object],
logger: [Object],
static: [Object],
heartbeats: true,
resource: '/socket.io',
transports: [Object],
authorization: [Function],
blacklist: [Object],
'log level': 2,
'log colors': false,
'close timeout': 60,
'heartbeat interval': 25,
'heartbeat timeout': 60,
'polling duration': 20,
'flash policy server': true,
'flash policy port': 10843,
'destroy upgrade': true,
'destroy buffer size': 100000000,
'browser client': true,
'browser client cache': true,
'browser client minification': false,
'browser client etag': false,
'browser client expires': 315360000,
'browser client gzip': false,
'browser client handler': false,
'client store expiration': 15,
'match origin protocol': false },
handshaken: { '6609087532056719656': [Object] },
connected: { '6609087532056719656': true },
open: { '6609087532056719656': true },
closed: {},
rooms: { '': [Object], '/': [Object] },
roomClients: { '6609087532056719656': [Object] },
oldListeners: [ [Function] ],
gc: { ontimeout: [Function] } },
name: '',
sockets:
{ '6609087532056719656':
{ id: '6609087532056719656',
namespace: [Circular],
manager: [Object],
disconnected: false,
ackPackets: 0,
acks: {},
flags: [Object],
readable: true,
store: [Object],
_events: [Object],
userId: '4f94613efb3d52421400002c',
room: '' } },
auth: false,
flags: { endpoint: '', exceptions: [] },
_events: { connection: [ [Function], [Function] ] } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment