Пример #1
0
 public P2pSocketClient(P2pSocketClientOptions exchangeOptions, P2pAuthenticationProvider authenticationProvider) : base(exchangeOptions, authenticationProvider)
 {
     //  AddGenericHandler("Pong", (connection, token) => { });
     SendPeriodic(TimeSpan.FromSeconds(5), con => SocketRequestFactory.Create("server.ping"));
 }
Пример #2
0
 public P2pClient(P2pClientOptions exchangeOptions, P2pAuthenticationProvider authenticationProvider) : base(exchangeOptions, authenticationProvider)
 {
 }