}
public String call(String procId, ResultListener<WampCallResultMessage> listener, long timeout, Object... args) throws IOException, SerializationException{
String callId = generateCallId();
OutputWampCallMessage msg = new OutputWampCallMessage();
msg.setProcId(procId);
msg.setCallId(callId);
if(args.length > 0){
if(args.length == 1)
msg.setArgument(args[0]);
else
msg.setArgument(args);
}
conn.sendMessage(msg);
if(listener != null)