okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

Interceptor access to WebSocket Connection

Open sduslum opened this issue 7 years ago • 10 comments
trafficstars

Feature Request : when use web socket, I want to get dns ip result which tcp connect success

sduslum avatar Aug 03 '18 10:08 sduslum

This kind of thing is available on the connection in an interceptor for regular calls, but not for web sockets.

swankjesse avatar Nov 04 '18 01:11 swankjesse

+1

Or at least make it possible to set http headers on the request that opens the socket

flocsy avatar Mar 04 '19 18:03 flocsy

Would love this as well - trying to make a HttpLoggingInterceptor equivalent for websockets seems impossible at this point.

amitav13 avatar Jul 27 '19 11:07 amitav13

Yes, pleaaase. I would love this for logging

widarlein avatar Sep 11 '19 16:09 widarlein

Did this ever get released, I'm looking to log my websocket traffic in a similar fashion to my http traffic.

apkelly avatar Mar 17 '20 10:03 apkelly

BTW Interceptor and Logger are probably two different features. I suspect we should implement Logger first.

yschimke avatar Mar 17 '20 10:03 yschimke

Yeah, would be nice to have some kind of logging

Nokuap avatar Apr 02 '20 08:04 Nokuap

Related issue https://github.com/square/okhttp/issues/5833 for logging

yschimke avatar Apr 02 '20 08:04 yschimke

This would be great to have +1

testifyqa avatar May 29 '22 16:05 testifyqa

+1

tao1 avatar Aug 05 '22 21:08 tao1

+1

Freshman111 avatar Dec 09 '22 03:12 Freshman111

Closing as low priority. Not implemented after almost 5 years.

yschimke avatar May 21 '23 07:05 yschimke