Skip to content

How to send auth parameter while connecting with socket? #735

Open
@najamsaqib-devcreew

Description

@najamsaqib-devcreew

Like we send auth parameter ion iOS using the following way, But I couldn't found a way to send It same in iOS.

  chatSocketManager = SocketManager(socketURL: socketURL, config: [.log(true), .compress])             
 chatSocketManager.defaultSocket.on(clientEvent: .connect) {data, ack in
            print("socket connected")
           self.chatSocketManager.defaultSocket.joinNamespace()
        }
 let dict =  [ "access" : accessToken,
                         "public": publicToken,
                         "timestamp" : "\(timeStamp)"]
chatSocketManager.defaultSocket.connect(withPayload: dict)

Need Someone Help.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions