Skip to content

Can't connect to websocket : received bad response code from server 422 #80

Closed
@tomasimartin

Description

@tomasimartin

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

if let url = NSURL(string: hostws) {
            socketClient.openSocketWithURLRequest(request: NSURLRequest(url: url as URL), delegate: self)
        }

Response:

Error Domain=SRWebSocketErrorDomain Code=2132 "received bad response code from server 422" UserInfo={NSLocalizedDescription=received bad response code from server 422, HTTPResponseStatusCode=422}

And if I use another "Starscream" library, it connects very well with the same url, but I need the "STOMP" part that this other library doesn't have

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