facebookincubator / SocketRocket

A conforming Objective-C WebSocket client library.
Other
9.54k stars 2.01k forks source link

Cannot connect with subprotocol `graphql-transport-ws` #671

Open booker-dragon opened 11 months ago

booker-dragon commented 11 months ago

Hi, my app is a react native application and it is connecting to an Apollo Server which use graphql-ws for its websocket implementation and its subprotocol is graphql-transport-ws, it has been working well for years.

However, a recent upgrade to react-native 0.72, there is a change to its iOS websocket client implementation https://github.com/facebook/react-native/pull/36471

Since then, the websocket is not connecting and result in NSError * domain: "SRWebSocketErrorDomain" - code: 2132 when the server error code is 403

May I know if SocketRocket is supporting this subprotocol? Or what could I do to support it?