HomeSort by relevance Sort by last modified time
    Searched refs:WebSocket (Results 1 - 25 of 25) sorted by null

  /external/libvncserver/webclients/novnc/include/web-socket-js/
web_socket.js 10 } else if (window.WebSocket) {
14 window.WebSocket = MozWebSocket;
41 * Our own implementation of WebSocket class using Flash.
48 window.WebSocket = function(url, protocols, proxyHost, proxyPort, headers) {
50 self.__id = WebSocket.__nextId++;
51 WebSocket.__instances[self.__id] = self;
52 self.readyState = WebSocket.CONNECTING;
63 WebSocket.__addTask(function() {
65 WebSocket.__flash.create(
76 WebSocket.prototype.send = function(data)
    [all...]
  /external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/
WebSocket.java 24 public interface WebSocket {
26 MediaType TEXT = MediaType.parse("application/vnd.okhttp.websocket+text; charset=utf-8");
28 MediaType BINARY = MediaType.parse("application/vnd.okhttp.websocket+binary");
WebSocketListener.java 23 /** Listener for server-initiated messages on a connected {@link WebSocket}. */
34 void onOpen(WebSocket webSocket, Response response);
53 * {@link WebSocket#TEXT} or {@link WebSocket#BINARY} which indicates the format of the message.
59 * WebSocket#sendPing(Buffer)} but might also be unsolicited.
65 * from a call to {@link WebSocket#close(int, String) close()} or as an unprompted
  /external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
WebSocketCallTest.java 39 import static com.squareup.okhttp.ws.WebSocket.TEXT;
57 WebSocket webSocket = awaitWebSocket();
58 webSocket.sendPing(new Buffer().writeUtf8("Hello, WebSockets!"));
66 WebSocket webSocket = awaitWebSocket();
67 webSocket.sendMessage(RequestBody.create(TEXT, "Hello, WebSockets!"));
73 @Override public void onOpen(final WebSocket webSocket, Response response) {
77 webSocket.sendMessage(RequestBody.create(TEXT, "Hello, WebSockets!"))
    [all...]
WebSocketRecorder.java 28 import static com.squareup.okhttp.ws.WebSocket.BINARY;
29 import static com.squareup.okhttp.ws.WebSocket.TEXT;
47 @Override public void onOpen(WebSocket webSocket, Response response) {
  /external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
WebSocketEcho.java 8 import com.squareup.okhttp.ws.WebSocket;
17 import static com.squareup.okhttp.ws.WebSocket.BINARY;
18 import static com.squareup.okhttp.ws.WebSocket.TEXT;
27 .url("ws://echo.websocket.org")
35 @Override public void onOpen(final WebSocket webSocket, Response response) {
39 webSocket.sendMessage(RequestBody.create(TEXT, "Hello..."));
40 webSocket.sendMessage(RequestBody.create(TEXT, "...World!"));
41 webSocket.sendMessage(RequestBody.create(BINARY, ByteString.decodeHex("deadbeef")));
42 webSocket.close(1000, "Goodbye, World!")
    [all...]
  /external/libvncserver/webclients/novnc/include/
websock.js 6 * Websock is similar to the standard WebSocket object but Websock
21 // Load Flash WebSocket emulator if needed
23 // To force WebSocket emulator even when native WebSocket available
25 // To enable WebSocket emulator debug:
28 if (window.WebSocket && !window.WEB_SOCKET_FORCE_FLASH) {
32 window.WebSocket = window.MozWebSocket;
34 /* no builtin WebSocket so load web_socket.js */
53 this._websocket = null; // WebSocket object
59 this._mode = 'base64'; // Current WebSocket mode: 'binary', 'base64
    [all...]
  /external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
RealWebSocket.java 22 import com.squareup.okhttp.ws.WebSocket;
38 public abstract class RealWebSocket implements WebSocket {
66 replyExecutor.execute(new NamedRunnable("OkHttp %s WebSocket Pong Reply", url) {
82 replyExecutor.execute(new NamedRunnable("OkHttp %s WebSocket Close Reply", url) {
113 "Message content type was null. Must use WebSocket.TEXT or WebSocket.BINARY.");
118 if (WebSocket.TEXT.subtype().equals(contentSubtype)) {
120 } else if (WebSocket.BINARY.subtype().equals(contentSubtype)) {
125 + ". Must use WebSocket.TEXT or WebSocket.BINARY.")
    [all...]
WebSocketReader.java 20 import com.squareup.okhttp.ws.WebSocket;
51 * An <a href="http://tools.ietf.org/html/rfc6455">RFC 6455</a>-compatible WebSocket frame reader.
217 type = WebSocket.TEXT;
220 type = WebSocket.BINARY;
  /external/nanohttpd/websocket/src/main/java/fi/iki/elonen/samples/echo/
DebugWebSocketServer.java 5 * NanoHttpd-Websocket
61 protected WebSocket openWebSocket(IHTTPSession handshake) {
65 private static class DebugWebSocket extends WebSocket {
  /external/nanohttpd/websocket/src/test/java/fi/iki/elonen/samples/echo/
SimpleEchoSocket.java 5 * NanoHttpd-Websocket
42 import org.eclipse.jetty.websocket.api.Session;
43 import org.eclipse.jetty.websocket.api.StatusCode;
44 import org.eclipse.jetty.websocket.api.annotations.OnWebSocketClose;
45 import org.eclipse.jetty.websocket.api.annotations.OnWebSocketConnect;
46 import org.eclipse.jetty.websocket.api.annotations.OnWebSocketMessage;
47 import org.eclipse.jetty.websocket.api.annotations.WebSocket;
52 @WebSocket(maxTextMessageSize = 64 * 1024)
  /external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
AutobahnTester.java 34 import static com.squareup.okhttp.ws.WebSocket.BINARY;
35 import static com.squareup.okhttp.ws.WebSocket.TEXT;
76 private WebSocket webSocket;
78 @Override public void onOpen(WebSocket webSocket, Response response) {
79 this.webSocket = webSocket;
97 webSocket.sendMessage(response);
136 @Override public void onOpen(WebSocket webSocket, Response response)
    [all...]
  /prebuilts/tools/common/m2/repository/com/firebase/tubesock/0.0.12/
tubesock-0.0.12.jar 
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
RecordedResponse.java 18 import com.squareup.okhttp.ws.WebSocket;
35 public final WebSocket webSocket;
39 public RecordedResponse(Request request, Response response, WebSocket webSocket, String body,
43 this.webSocket = webSocket;
  /external/nanohttpd/websocket/src/test/java/fi/iki/elonen/
WebSocketResponseHandlerTest.java 5 * NanoHttpd-Websocket
78 protected WebSocket openWebSocket(IHTTPSession handshake) {
79 return new WebSocket(handshake) { // Dummy websocket inner class.
109 this.headers.put("upgrade", "websocket");
111 this.headers.put("sec-websocket-key", "x3JJHMbDL1EzLkh9GBhXDw==");
112 this.headers.put("sec-websocket-protocol", "chat, superchat");
113 this.headers.put("sec-websocket-version", "13");
138 this.headers.remove("sec-websocket-key");
155 this.headers.put("upgrade", "not a websocket");
    [all...]
  /external/webrtc/webrtc/examples/androidapp/third_party/autobanh/
autobanh.jar 
  /prebuilts/tools/common/m2/repository/org/eclipse/jetty/jetty-websocket/8.1.14.v20131031/
jetty-websocket-8.1.14.v20131031.jar 
  /external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
NanoWSD.java 5 * NanoHttpd-Websocket
65 public static abstract class WebSocket {
83 WebSocket.this.out = out;
84 WebSocket.this.state = State.CONNECTING;
86 WebSocket.this.state = State.OPEN;
87 WebSocket.this.onOpen();
92 public WebSocket(NanoHTTPD.IHTTPSession handshakeRequest) {
118 * The received WebSocket Frame.
128 * The sent WebSocket Frame.
743 public static final String HEADER_UPGRADE_VALUE = "websocket";
    [all...]
  /prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp-ws/2.7.4/
okhttp-ws-2.7.4.jar 
  /external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
RealWebSocketTest.java 38 import static com.squareup.okhttp.ws.WebSocket.BINARY;
39 import static com.squareup.okhttp.ws.WebSocket.TEXT;
47 // zero effect on the behavior of the WebSocket API which is why tests are only written once
65 String url = "http://example.com/websocket";
122 assertEquals("Message content type was null. Must use WebSocket.TEXT or WebSocket.BINARY.",
133 "Unknown message content type: text/plain. Must use WebSocket.TEXT or WebSocket.BINARY.",
229 // A failed write prevents further use of the WebSocket instance.
253 // A failed write prevents further use of the WebSocket instance
    [all...]
  /external/libvncserver/webclients/novnc/
README.md 49 * WebSocket SSL/TLS encryption (i.e. "wss://") support
76 WebSocket support.
  /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
WebSocketChannelClient.java 19 import de.tavendo.autobahn.WebSocket.WebSocketConnectionObserver;
31 * WebSocket client implementation.
52 // WebSocket send queue. Messages are added to the queue when WebSocket
57 * Possible WebSocket connection states.
64 * Callback interface for messages delivered on WebSocket.
89 Log.e(TAG, "WebSocket is already connected.");
96 Log.d(TAG, "Connecting WebSocket to: " + wsUrl + ". Post URL: " + postUrl);
104 reportError("WebSocket connection error: " + e.getMessage());
113 Log.w(TAG, "WebSocket register() in state " + state)
    [all...]
  /prebuilts/tools/common/m2/repository/com/koushikdutta/async/androidasync/2.1.3/
androidasync-2.1.3.jar 
  /prebuilts/tools/common/m2/repository/net/sourceforge/htmlunit/htmlunit/2.14/
htmlunit-2.14.jar 
  /external/v8/tools/profviz/
gnuplot-4.6.3-emscripten.js     [all...]

Completed in 751 milliseconds