Okhttp: Interceptor access to WebSocket Connection

Created on 3 Aug 2018  路  8Comments  路  Source: square/okhttp

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

enhancement

Most helpful comment

Yes, pleaaase. I would love this for logging

All 8 comments

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

+1

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

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

Yes, pleaaase. I would love this for logging

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

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

Yeah, would be nice to have some kind of logging

Was this page helpful?
0 / 5 - 0 ratings

Related issues

albka1986 picture albka1986  路  3Comments

GuiForget picture GuiForget  路  3Comments

theotherp picture theotherp  路  3Comments

rfc2822 picture rfc2822  路  3Comments

vanshg picture vanshg  路  3Comments