-
public interface WebSocket.Factory
-
-
Method Summary
Modifier and Type Method Description abstract WebSocketnewWebSocket(MobonRequest mobonRequest, WebSocketListener listener)Creates a new web socket and immediately returns it. -
-
Method Detail
-
newWebSocket
abstract WebSocket newWebSocket(MobonRequest mobonRequest, WebSocketListener listener)
Creates a new web socket and immediately returns it. Creating a web socket initiates anasynchronous process to connect the socket. Once that succeeds or fails,
{@code listener}will be notified. The caller must either close or cancel the returned web socket when it isno longer in use.
-
-
-
-