public void Send(WampMessage <object> message)
            {
                WampMessage <TMessage> typedMessage =
                    mFormatter.SerializeMessage(message);

                mOutgoing.OnNext(typedMessage);
            }
Exemple #2
0
        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);
 }