1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
src/main/java/com/squareup/okhttp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
pom.xml Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

OkHttp Web Sockets

RFC6455-compliant web socket implementation.

Create a WebSocketCall with a Request and an OkHttpClient instance.

WebSocketCall call = WebSocketCall.create(client, request);

A WebSocketListener will notify of the initial connection, server-sent messages, and any failures on the connection.

Start the web socket by calling enqueue on WebSocketCall with the WebSocketListener.

call.enqueue(new WebSocketListener() {
  // ...
});

Note: This module's API should be considered experimental and may be subject to breaking changes in future releases.