Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed Nov 12, 2024
1 parent 203436d commit 5164983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/realtime/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class RealtimeConnection extends Events {
* @param {string} data - The message data
*/
send(data) {
if (this._socket && this._socket.readyState === 1) {
if (this._socket && this._socket.readyState === WebSocket.OPEN) {
this._socket.send(data);
}
}
Expand Down

0 comments on commit 5164983

Please sign in to comment.