public void transmit ( String userId , JSONObject message ) { JSONObject usrMsgJson = new JSONObject ( ) ; try { usrMsgJson . put ( PnRTCMessage . JSON_USERMSG , message ) ; this . pcClient . transmitMessage ( userId , usrMsgJson ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } }
Send a custom JSONObject user message to a single peer .