Skip to content

Commit c3bd8fe

Browse files
committed
Made default value of protocols to be nil
1 parent a2ce331 commit c3bd8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ScClient/client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class ScClient : Listener, WebSocketDelegate {
9696
socket.delegate = self
9797
}
9898

99-
public init(urlRequest : URLRequest, authToken : String? = nil, protocols : [String]?) {
99+
public init(urlRequest : URLRequest, authToken : String? = nil, protocols : [String]? = nil) {
100100
self.counter = AtomicInteger()
101101
self.authToken = authToken
102102
self.socket = WebSocket(request: urlRequest, protocols : protocols)

0 commit comments

Comments
 (0)