WebSocket logs - iOS

Hi can someone suggest me how can I print the subscription logs for all subscriptions in one place?
ApolloInterceptor doesn’t work
Thanks!!

anybody? Thanks a lo!!!

Hi @yarden :wave:

The Apollo interceptors approach isn’t working because web sockets don’t use that pattern at all unfortunately. There is the WebSocketTransportDelegate which you can set on WebSocketTransport but the events you’ll get there are related to ‘status’ changes more than message logging.

What type of log data are you wanting to capture?

Hi,
Thanks for your response!
I want to print the data that I’m getting for server

If you’re just wanting to log response data then you can use the response returned from the subscribe method. If you’re wanting to log individual websocket-level responses then you’ll need to fork the repo and add custom code to do that.