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

Commit

Permalink
fix missing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrouid committed Apr 18, 2019
1 parent e36f62d commit 698d96a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function socketSend (socket: WebSocket, socketMessage: ISocketMessage) {
if (socket.readyState === 1) {
console.log('OUT =>', socketMessage)
socket.send(JSON.stringify(socketMessage))
} else {
setPub(socketMessage)
}
}

Expand Down

0 comments on commit 698d96a

Please sign in to comment.