Package io.socket.client
Class IO
java.lang.Object
io.socket.client.IO
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setDefaultOkHttpCallFactory
(okhttp3.Call.Factory factory) static void
setDefaultOkHttpWebSocketFactory
(okhttp3.WebSocket.Factory factory) static Socket
static Socket
socket
(String uri, IO.Options opts) static Socket
static Socket
socket
(URI uri, IO.Options opts)
-
Field Details
-
protocol
public static int protocolProtocol version.
-
-
Method Details
-
setDefaultOkHttpWebSocketFactory
public static void setDefaultOkHttpWebSocketFactory(okhttp3.WebSocket.Factory factory) -
setDefaultOkHttpCallFactory
public static void setDefaultOkHttpCallFactory(okhttp3.Call.Factory factory) -
socket
- Throws:
URISyntaxException
-
socket
- Throws:
URISyntaxException
-
socket
-
socket
- Parameters:
uri
- uri to connect.opts
- options for socket.- Returns:
Socket
instance.
-