Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion LaravelEchoIOS/connector/SocketIOConnector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ class SocketIOConnector: IConnector {
if let url = self.options["host"] as? String {
let nurl: URL! = URL(string: url)
let socketConfig: SocketIOClientConfiguration = [.log(true), .compress]
self.socket = SocketIOClient(socketURL: nurl, config: socketConfig)

// Configuration du SocketManager
let manager = SocketManager(socketURL: nurl, config: socketConfig)

self.socket = manager.defaultSocket
self.socket?.connect(timeoutAfter: 5, withHandler: {
print("ERROR")
})
Expand Down