app/src/main/java/org/appspot/apprtc/WebSocketChannelClient.java
// Asynchronously send POST/DELETE to WebSocket server.
Asynchronously send POST/DELETE to WebSocket server.
Asynchronously send POST / DELETE to WebSocket server .
private void sendWSSMessage(final String method, final String message) {
        String postUrl = postServerUrl + "/" + roomID + "/" + clientID;
        FileLog.e(TAG, "WS " + method + " : " + postUrl + " : " + message);
        AsyncHttpURLConnection httpConnection = new AsyncHttpURLConnection(
                method, postUrl, message, new AsyncHttpEvents() {
            @Override
            public void onHttpError(String errorMessage) {
                reportError("WS " + method + " error: " + errorMessage);
            }
            @Override
            public void onHttpComplete(String response) {
            }
        });
        httpConnection.send();
    }
private void sendWSSMessage ( final String method , final String message ) { String postUrl = postServerUrl + "/" + roomID + "/" + clientID ; FileLog . e ( TAG , "WS " + method + " : " + postUrl + " : " + message ) ; AsyncHttpURLConnection httpConnection = new AsyncHttpURLConnection ( method , postUrl , message , new AsyncHttpEvents ( ) { @ Override public void onHttpError ( String errorMessage ) { reportError ( "WS " + method + " error: " + errorMessage ) ; } @ Override public void onHttpComplete ( String response ) { } } ) ; httpConnection . send ( ) ; }
Asynchronously send POST/DELETE to WebSocket server.
Asynchronously send POST / DELETE to WebSocket server .