Romixery / SwiftStomp

An elegent STOMP client for Swift base on `URLSessionWebSocketTask`
MIT License
63 stars 29 forks source link

Not able to connect to a Secure Stomp Connection #16

Closed hatteajay1212 closed 6 months ago

hatteajay1212 commented 10 months ago

I am trying to connect to a secure connection but receiving following errors :

  1. Stomp --> onSocketEvent 2024-01-10 09:51:28 SwiftStomp [SOCKET ERROR]: Socket: Error: Optional(Starscream.HTTPUpgradeError.notAnUpgrade(403))

2.Stomp --> onError 2024-01-10 09:51:28 SwiftStomp [SOCKET ERROR]: Socket: Error: Optional(Starscream.WSError(type: Starscream.ErrorType.protocolError, message: "masked and rsv data is not currently supported", code: 1002))

I am using follwing versions : SwiftStomp - v1.1.1 Starscream - v4.0.4

url for the reference : wss://abc.xyz/topic/subtopic

Romixery commented 6 months ago

The Starscream has been removed from the project and now we are using the native URLSessionWebSocketTask to make Websocket connections. I didn't test the secure connection TBH with the new URLSessionWebSocketTask. Please try again and keep me posted if the problem exists.