Skip to content

Can't connect to websocket with authorization header #39

Closed
@cleverClosure

Description

@cleverClosure

Hi. I get an error while trying to connect to websocket, here is the code:

let request = NSURLRequest(url: url)
socketClient.openSocketWithURLRequest(request: request, delegate: self, connectionHeaders:["Authorization": "Bearer \(token)"])

Response:

received bad response code from server 401

Do you have any ideas why that might be the case?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions