public void Send(WampMessage <object> message) { WampMessage <TMessage> typedMessage = mFormatter.SerializeMessage(message); mOutgoing.OnNext(typedMessage); }
public WampMessage <MockRaw> SerializeWelcome(string sessionId, int protocolVersion, string serverIdent) { var message = mOutgoingRequestSerializer.SerializeRequest (Method.Get((IWampClient client) => client.Welcome(default(string), default(int), default(string))), new object[] { sessionId, protocolVersion, serverIdent }); return(mFormatter.SerializeMessage(message)); }
public void Handle(WampMessage <object> message) { Message = mFormatter.SerializeMessage(message); }