Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
feat(socket): pass socket ref to ready event
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Mar 16, 2018
1 parent 1d47aed commit d2be22f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Connection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@ export default class Connection extends Emitter {
return
}

if (wsp.isPongPacket(packet)) {
debug('pong packet')
return
}

debug('invalid packet type %d', packet.t)
}

Expand Down
2 changes: 1 addition & 1 deletion src/Socket/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class Socket {
*/
joinAck () {
this.state = 'open'
this.emitter.emit('ready')
this.emitter.emit('ready', this)

/**
* Process queued events, before the subscription was ready
Expand Down

0 comments on commit d2be22f

Please sign in to comment.