KaliumWebSocketFactory

class KaliumWebSocketFactory(okHttpClient: OkHttpClient) : WebSocket.Factory

Upon request, creates normal WebSocket, but wraps the listener to add logging.

See also

Constructors

Link copied to clipboard
constructor(okHttpClient: OkHttpClient)

Types

Link copied to clipboard
inner class WrapperListener(wrappedListener: WebSocketListener) : WebSocketListener

Wraps the provided wrappedListener, keeping the normal behaviour, but using kaliumUtilLogger to log all operations.

Functions

Link copied to clipboard
open override fun newWebSocket(request: Request, listener: WebSocketListener): WebSocket