* @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);
}