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

merging to master #73

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
removed annoying hard to get rid of debug messages
  • Loading branch information
N-Codex authored Aug 28, 2020
commit 889d3ed043cd45e9a07345a095f337ba0ecf3a4b
4 changes: 2 additions & 2 deletions src/Socket/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class Socket {
this.state = 'open'
this.emitter.emit('ready', this)

if (process.env.NODE_ENV !== 'production') {
if (this.connection.options.debug) {
debug('clearing emit buffer for %s topic after subscription ack', this.topic)
}

Expand Down Expand Up @@ -233,7 +233,7 @@ export default class Socket {
*/
close () {
this.state = 'closing'
if (process.env.NODE_ENV !== 'production') {
if (this.connection.options.debug) {
debug('closing subscription for %s topic with server', this.topic)
}
this.connection.sendPacket(wsp.leavePacket(this.topic))
Expand Down