Package com.github.ghetolay.jwamp.message.output

Examples of com.github.ghetolay.jwamp.message.output.OutputWampCallResultMessage


   * @throws IOException
   * @throws SerializationException
   */
  private void sendResult(String callId, Object... result) throws IOException, SerializationException{

    OutputWampCallResultMessage resultMsg = new OutputWampCallResultMessage();

    if(result != null && result.length > 0){
      if(result.length == 1)
        resultMsg.setResult(result[0]);
      else
        resultMsg.setResult(result);
    }
   
    resultMsg.setCallId(callId);


    conn.sendMessage(resultMsg);
  }
View Full Code Here

TOP

Related Classes of com.github.ghetolay.jwamp.message.output.OutputWampCallResultMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.