Skip to content

Commit

Permalink
Merge pull request #26 from palavatv/fix/check-for-pong-received
Browse files Browse the repository at this point in the history
Fix checking for pong (object instances are unequal to each other)
  • Loading branch information
farao authored Jun 4, 2020
2 parents 2e4361f + 12ec01a commit d03388b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/web_socket_channel.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class palava.WebSocketChannel extends @EventEmitter
@socket.onmessage = (msg) =>
try
parsedMsg = JSON.parse(msg.data)
if parsedMsg == {event: "pong"}
if parsedMsg.event == "pong"
@outstandingPongs = 0
else
@emit 'message', parsedMsg
Expand Down

0 comments on commit d03388b

Please sign in to comment.