Home
last modified time | relevance | path

Searched refs:webSocket (Results 1 – 12 of 12) sorted by relevance

/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/
DSRWebSocket.h99 - (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message;
103 - (void)webSocketDidOpen:(SRWebSocket *)webSocket;
104 - (void)webSocket:(SRWebSocket *)webSocket didFailWithError:(NSError *)error;
105 - (void)webSocket:(SRWebSocket *)webSocket didCloseWithCode:(NSInteger)code reason:(NSString *)reas…
106 - (void)webSocket:(SRWebSocket *)webSocket didReceivePong:(NSData *)pongPayload;
DSRWebSocket.m149 typedef void (^data_callback)(SRWebSocket *webSocket, NSData *data);
679 if ([self.delegate respondsToSelector:@selector(webSocket:didFailWithError:)]) {
680 [self.delegate webSocket:self didFailWithError:error];
747 if ([self.delegate respondsToSelector:@selector(webSocket:didReceivePong:)]) {
748 [self.delegate webSocket:self didReceivePong:pongData];
757 [self.delegate webSocket:self didReceiveMessage:message];
1108 … if ([self.delegate respondsToSelector:@selector(webSocket:didCloseWithCode:reason:wasClean:)]) {
1109 … [self.delegate webSocket:self didCloseWithCode:_closeCode reason:_closeReason wasClean:YES];
1456 … if ([self.delegate respondsToSelector:@selector(webSocket:didCloseWithCode:reason:wasClean:)]) {
1457 …[self.delegate webSocket:self didCloseWithCode:SRStatusCodeGoingAway reason:@"Stream end encounter…
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java57 WebSocket webSocket = awaitWebSocket(); in clientPingPong() local
58 webSocket.sendPing(new Buffer().writeUtf8("Hello, WebSockets!")); in clientPingPong()
66 WebSocket webSocket = awaitWebSocket(); in clientMessage() local
67 webSocket.sendMessage(RequestBody.create(TEXT, "Hello, WebSockets!")); in clientMessage()
73 @Override public void onOpen(final WebSocket webSocket, Response response) { in serverMessage()
77 webSocket.sendMessage(RequestBody.create(TEXT, "Hello, WebSockets!")); in serverMessage()
199 WebSocket webSocket = awaitWebSocket(request1); in websocketScheme() local
200 webSocket.sendMessage(RequestBody.create(TEXT, "abc")); in websocketScheme()
216 @Override public void onOpen(WebSocket webSocket, Response response) { in awaitWebSocket()
217 webSocketRef.set(webSocket); in awaitWebSocket()
[all …]
DWebSocketRecorder.java47 @Override public void onOpen(WebSocket webSocket, Response response) { in onOpen() argument
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
DAutobahnTester.java76 private WebSocket webSocket; in runTest()
78 @Override public void onOpen(WebSocket webSocket, Response response) { in runTest()
79 this.webSocket = webSocket; in runTest()
97 webSocket.sendMessage(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.java35 @Override public void onOpen(final WebSocket webSocket, Response response) { in onOpen() argument
39 webSocket.sendMessage(RequestBody.create(TEXT, "Hello...")); in onOpen()
40 webSocket.sendMessage(RequestBody.create(TEXT, "...World!")); in onOpen()
41 webSocket.sendMessage(RequestBody.create(BINARY, ByteString.decodeHex("deadbeef"))); in onOpen()
42 webSocket.close(1000, "Goodbye, World!"); in onOpen()
/external/webrtc/webrtc/examples/objc/AppRTCDemo/
DARDWebSocketChannel.m128 - (void)webSocketDidOpen:(SRWebSocket *)webSocket {
136 - (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message {
159 - (void)webSocket:(SRWebSocket *)webSocket didFailWithError:(NSError *)error {
164 - (void)webSocket:(SRWebSocket *)webSocket
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRecordedResponse.java35 public final WebSocket webSocket; field in RecordedResponse
39 public RecordedResponse(Request request, Response response, WebSocket webSocket, String body, in RecordedResponse() argument
43 this.webSocket = webSocket; in RecordedResponse()
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/
DWebSocketCall.java148 RealWebSocket webSocket = StreamWebSocket.create( in createWebSocket() local
151 listener.onOpen(webSocket, response); in createWebSocket()
153 while (webSocket.readMessage()) { in createWebSocket()
DWebSocketListener.java34 void onOpen(WebSocket webSocket, Response response); in onOpen() argument
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java676 final RealWebSocket webSocket =
699 listener.onOpen(webSocket, fancyResponse);
701 while (webSocket.readMessage()) {
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
DNanoWSD.java846 WebSocket webSocket = openWebSocket(session); in serve() local
847 Response handshakeResponse = webSocket.getHandshakeResponse(); in serve()