Skip to content

Commit 786acb8

Browse files
committed
Fixed bug(Forgot to set delegate to Websocketchannel)
1 parent 2fd0dfc commit 786acb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/StompClientKit/StompClient.swift

+2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ public class StompClient: WebSocketChannelDelegate {
5353
// at this point, the websocket had not connected to server yet.
5454
public init(endpoint url : String) {
5555
underlyWebsocket = StarscreamWSChannel(url: url)
56+
underlyWebsocket.delegate = self
5657
}
5758

5859
/**
5960
*
6061
*/
6162
public init(over channel: WebSocketChannel) {
6263
underlyWebsocket = channel
64+
underlyWebsocket.delegate = self
6365
}
6466

6567
/**

0 commit comments

Comments
 (0)