# WebSocket logs - iOS

**URL:** <https://community.apollographql.com/t/websocket-logs-ios/7085>\
**Category:** Client SDKs\
**Tags:** ios\
**Created:** [January 2, 2024, 7:36am UTC](https://community.apollographql.com/t/websocket-logs-ios/7085 "2024-01-02T07:36:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yarden](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/yarden/32/5450_2.png) [@yarden](https://community.apollographql.com/u/yarden)\
**Post date:** [January 2, 2024, 7:36am UTC](https://community.apollographql.com/t/websocket-logs-ios/7085/1 "2024-01-02T07:36:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yarden](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/yarden/32/5450_2.png) [@yarden](https://community.apollographql.com/u/yarden)\
**Post date:** [January 3, 2024, 12:28pm UTC](https://community.apollographql.com/t/websocket-logs-ios/7085/2 "2024-01-03T12:28:50Z")

</div>

anybody? Thanks a lo!!!

---

<div class="post-metadata">

**Author:** ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)\
**Post date:** [January 8, 2024, 10:43pm UTC](https://community.apollographql.com/t/websocket-logs-ios/7085/3 "2024-01-08T22:43:13Z")

</div>

Hi @yarden 👋

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?

---

<div class="post-metadata">

**Author:** ![yarden](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/yarden/32/5450_2.png) [@yarden](https://community.apollographql.com/u/yarden)\
**Post date:** [January 9, 2024, 9:34pm UTC](https://community.apollographql.com/t/websocket-logs-ios/7085/4 "2024-01-09T21:34:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![calvincestari](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/calvincestari/32/339_2.png) [@calvincestari](https://community.apollographql.com/u/calvincestari)\
**Post date:** [January 11, 2024, 6:44pm UTC](https://community.apollographql.com/t/websocket-logs-ios/7085/5 "2024-01-11T18:44:29Z")

</div>

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.
