Home
last modified time | relevance | path

Searched refs:WebSocket (Results 1 – 25 of 25) sorted by relevance

/external/libvncserver/webclients/novnc/include/web-socket-js/
Dweb_socket.js10 } else if (window.WebSocket) {
14 window.WebSocket = MozWebSocket;
48 window.WebSocket = function(url, protocols, proxyHost, proxyPort, headers) { class in window
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) { class
77 if (this.readyState == WebSocket.CONNECTING) {
[all …]
DREADME.txt36 4. If you are NOT using web-socket-ruby as your WebSocket server, you need to place Flash socket po…
40 6. Make sure the port used for WebSocket (10081 in example above) is not blocked by your server/cli…
80 The WebSocket spec (http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol) specifies instruct…
84 …instantiates the WebSocket. As such, if you want to support proxied conncetions, you'll have to su…
91 …od below, HTML files in ANY domains can send arbitrary TCP data to your WebSocket server, regardle…
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java39 import static com.squareup.okhttp.ws.WebSocket.TEXT;
57 WebSocket webSocket = awaitWebSocket(); in clientPingPong()
66 WebSocket webSocket = awaitWebSocket(); in clientMessage()
73 @Override public void onOpen(final WebSocket webSocket, Response response) { in serverMessage()
199 WebSocket webSocket = awaitWebSocket(request1); in websocketScheme()
204 private WebSocket awaitWebSocket() { in awaitWebSocket()
208 private WebSocket awaitWebSocket(Request request) { in awaitWebSocket()
212 final AtomicReference<WebSocket> webSocketRef = new AtomicReference<>(); in awaitWebSocket()
216 @Override public void onOpen(WebSocket webSocket, Response response) { in awaitWebSocket()
253 @Override public void onOpen(WebSocket webSocket, Response response) { in onOpen()
DWebSocketRecorder.java28 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) { in onOpen()
/external/libvncserver/webclients/novnc/include/
Dwebsock.js28 if (window.WebSocket && !window.WEB_SOCKET_FORCE_FLASH) {
32 window.WebSocket = window.MozWebSocket;
226 if (bt && ('binaryType' in WebSocket.prototype ||
227 !!(new WebSocket(ws_schema + '://.').binaryType))) {
275 this._websocket = new WebSocket(uri, protocols);
308 if ((this._websocket.readyState === WebSocket.OPEN) ||
309 (this._websocket.readyState === WebSocket.CONNECTING)) {
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
DAutobahnTester.java34 import static com.squareup.okhttp.ws.WebSocket.BINARY;
35 import static com.squareup.okhttp.ws.WebSocket.TEXT;
76 private WebSocket webSocket; in runTest()
78 @Override public void onOpen(WebSocket webSocket, Response response) { in runTest()
136 @Override public void onOpen(WebSocket webSocket, Response response) { in getTestCount()
173 @Override public void onOpen(WebSocket webSocket, Response response) { in updateReports()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DWebSocketEcho.java8 import com.squareup.okhttp.ws.WebSocket;
17 import static com.squareup.okhttp.ws.WebSocket.BINARY;
18 import static com.squareup.okhttp.ws.WebSocket.TEXT;
35 @Override public void onOpen(final WebSocket webSocket, Response response) { in onOpen()
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
DRealWebSocket.java22 import com.squareup.okhttp.ws.WebSocket;
38 public abstract class RealWebSocket implements WebSocket {
118 if (WebSocket.TEXT.subtype().equals(contentSubtype)) { in sendMessage()
120 } else if (WebSocket.BINARY.subtype().equals(contentSubtype)) { in sendMessage()
DWebSocketReader.java20 import com.squareup.okhttp.ws.WebSocket;
217 type = WebSocket.TEXT; in readMessageFrame()
220 type = WebSocket.BINARY; in readMessageFrame()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRecordedResponse.java18 import com.squareup.okhttp.ws.WebSocket;
35 public final WebSocket webSocket;
39 public RecordedResponse(Request request, Response response, WebSocket webSocket, String body, in RecordedResponse()
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/samples/echo/
DDebugWebSocketServer.java61 protected WebSocket openWebSocket(IHTTPSession handshake) { in openWebSocket()
65 private static class DebugWebSocket extends WebSocket {
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/samples/echo/
DSimpleEchoSocket.java47 import org.eclipse.jetty.websocket.api.annotations.WebSocket;
52 @WebSocket(maxTextMessageSize = 64 * 1024)
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
DNanoWSD.java65 public static abstract class WebSocket { class in NanoWSD
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) { in WebSocket() method in NanoWSD.WebSocket
831 protected abstract WebSocket openWebSocket(IHTTPSession handshake); in openWebSocket()
846 WebSocket webSocket = openWebSocket(session); in serve()
/external/webrtc/webrtc/examples/objc/AppRTCDemo/
DARDWebSocketChannel.m46 RTCLog(@"Opening WebSocket.");
129 RTCLog(@"WebSocket connection opened.");
160 RTCLogError(@"WebSocket error: %@", error);
168 RTCLog(@"WebSocket closed with code: %ld reason:%@ wasClean:%d",
DARDAppClient.m610 // Open WebSocket connection.
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/
DWebSocketResponseHandlerTest.java78 protected WebSocket openWebSocket(IHTTPSession handshake) { in openWebSocket()
79 return new WebSocket(handshake) { // Dummy websocket inner class. in openWebSocket()
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/
DWebSocket.java24 public interface WebSocket { interface
DWebSocketListener.java34 void onOpen(WebSocket webSocket, Response response); in onOpen()
/external/libvncserver/webclients/novnc/
DREADME.md49 * WebSocket SSL/TLS encryption (i.e. "wss://") support
76 WebSocket support.
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DRealWebSocketTest.java38 import static com.squareup.okhttp.ws.WebSocket.BINARY;
39 import static com.squareup.okhttp.ws.WebSocket.TEXT;
/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/
DSRWebSocket.m428 …= CFBridgingRelease(CFHTTPMessageCopyHeaderFieldValue(httpMessage, CFSTR("Sec-WebSocket-Accept")));
451 …ictionary dictionaryWithObject:[NSString stringWithFormat:@"Invalid Sec-WebSocket-Accept response"…
455 …gRelease(CFHTTPMessageCopyHeaderFieldValue(_receivedHTTPHeaders, CFSTR("Sec-WebSocket-Protocol")));
459 … dictionaryWithObject:[NSString stringWithFormat:@"Server specified Sec-WebSocket-Protocol that wa…
519 …CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Sec-WebSocket-Key"), (__bridge CFStringRef)_secKe…
520 …CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Sec-WebSocket-Version"), (__bridge CFStringRef)[N…
525 …CFHTTPMessageSetHeaderFieldValue(request, CFSTR("Sec-WebSocket-Protocol"), (__bridge CFStringRef)[…
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DWebSocketChannelClient.java19 import de.tavendo.autobahn.WebSocket.WebSocketConnectionObserver;
/external/okhttp/
DCHANGELOG.md93 * **WebSocket API now uses `RequestBody` and `ResponseBody` for messages.**
105 * Fix: Enforce that callers call `WebSocket.close()` on IO errors. Error
129 * New: Buffer WebSocket frames for better performance.
/external/libvncserver/
DNEWS44 (http://en.wikipedia.org/wiki/WebSocket), a web technology providing for multiplexing
DChangeLog1807 websockets: Initial WebSockets support. Has a bug: WebSocket client disconnects are not detected.