public static interface WebSocket.Factory
Modifier and Type | Method and Description |
---|---|
WebSocket |
newWebSocket(Request request,
WebSocketListener listener)
Creates a new web socket and immediately returns it.
|
WebSocket newWebSocket(Request request, WebSocketListener listener)
listener
will be notified. The caller must either close or cancel the returned web socket when it is
no longer in use.Copyright © 2019. All rights reserved.