Skip to content

Commit

Permalink
workaround for some implementations not respecting setBlocking
Browse files Browse the repository at this point in the history
not sure if that is really the underlaying issue, but at least
SSLSocket on HL behaves this way
  • Loading branch information
Tezar committed May 12, 2021
1 parent bb9ef43 commit 7b8a4fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hx/ws/WebSocketCommon.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ class WebSocketCommon {
id = _nextId++;
if (socket == null) {
_socket = new SocketImpl();
_socket.setBlocking(false);
} else {
_socket = socket;
}
_socket.setBlocking(false);
_socket.setTimeout(0);
}

public function send(data:Any) {
Expand Down

0 comments on commit 7b8a4fc

Please sign in to comment.