Closed sunil-chayagol closed 6 years ago
@sunil-chayagol You shouldn't be manually creating the clients. Use the manager's socket(forNamespace:)
method, or the defaultSocket
property.
Also the manager must be kept around, if it gets released, it will bring down the connections.
i am able to connect to the server.but event handlers are not called.
let manager = SocketManager(socketURL: URL(string: "ws://192.168.0.121:8080")!, config: ["connectParams": ["token": token]]) socket = SocketIOClient(manager: manager, nsp: "/location") globalSocket = manager.defaultSocket
// print(data) }
// print(data) }