Skip to content

Commit

Permalink
close code patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsandaruwan committed Jun 27, 2022
1 parent 2e9d6b4 commit d65834a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/haxe/net/WebSocket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ class WebSocket {
public dynamic function onmessageBytes(message:Bytes):Void {
}

public dynamic function onclose():Void {
public dynamic function onclose(?e:Dynamic):Void {
}
}
2 changes: 1 addition & 1 deletion src/haxe/net/impl/WebSocketJs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WebSocketJs extends WebSocket {
this.onopen();
};
impl.onclose = function(e:js.html.Event) {
this.onclose();
this.onclose(e);
};
impl.onerror = function(e:js.html.Event) {
this.onerror('error');
Expand Down

0 comments on commit d65834a

Please sign in to comment.