private IWampServer GetClient(IWampConnection <JToken> connection, IWampClient <JToken> wampClient) { var serverProxyBuilder = new ManualWampServerProxyBuilder <JToken, IWampClient <JToken> > (new WampOutgoingRequestSerializer <JToken>(mFormatter), new WampServerProxyOutgoingMessageHandlerBuilder <JToken, IWampClient <JToken> > (GetHandlerBuilder())); var proxy = serverProxyBuilder.Create(wampClient, connection); return(proxy); }
public IWampServer GetServerProxy(IWampClient <TMessage> callbackClient) { return(mServerProxyBuilder.Create(callbackClient, mConnection)); }