Skip to content

Commit

Permalink
Fix - canSendWebSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Nov 1, 2024
1 parent 71c0c53 commit fcf0eae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gpad/RCanvasPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class RCanvasPainter extends RPadPainter {

/** @summary Return true if message can be send via web socket
* @private */
canSendWebSocket() { this._websocket?.canSend(); }
canSendWebSocket() { return this._websocket?.canSend(); }

/** @summary Send message via web socket
* @private */
Expand Down
2 changes: 1 addition & 1 deletion modules/gpad/TCanvasPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class TCanvasPainter extends TPadPainter {

/** @summary Return true if message can be send via web socket
* @private */
canSendWebSocket() { this._websocket?.canSend(); }
canSendWebSocket() { return this._websocket?.canSend(); }

/** @summary Send text message with web socket
* @desc used for communication with server-side of web canvas
Expand Down

0 comments on commit fcf0eae

Please sign in to comment.