Skip to content

Commit 68da96f

Browse files
committed
fix for objc
1 parent ffd92d7 commit 68da96f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SwiftIO/SocketIOClient.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ public class SocketIOClient: NSObject {
116116
self.engine = SocketEngine(client: self, forcePolling: self.forcePolling)
117117
}
118118

119+
public convenience init(socketURL:String, opts:NSDictionary?) {
120+
self.init(socketURL: socketURL, opts: opts)
121+
}
122+
119123
// Closes the socket
120124
public func close() {
121125
self._closed = true

0 commit comments

Comments
 (0)