Skip to content

Commit

Permalink
fix(iOS): add missing onopen call to WebSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiu8081 authored Feb 14, 2023
1 parent a3467a6 commit 0ca8128
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iOS/Hummer/Classes/Component/WebSocket/HMWebSocket.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ - (void)webSocketDidOpen:(SRWebSocket *)webSocket {
}
[webSocketSet addObject:self];
self.context.webSocketSet = webSocketSet;
self.onOpen ? self.onOpen(@[@{}]) : nil;
}

- (void)webSocket:(SRWebSocket *)webSocket didFailWithError:(NSError *)error {
Expand Down

0 comments on commit 0ca8128

Please sign in to comment.