How to use rsocket-tcp-server - 4 common examples

To help you get started, we’ve selected a few rsocket-tcp-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github facebook / flipper / src / server.tsx View on Github external
console.debug(
              `${
                sslConfig ? 'Secure' : 'Certificate'
              } server started on port ${port}`,
              'server',
            );
            server.emit('listening', port);
            resolve(rsServer);
          });
        return transportServer;
      };
      rsServer = new RSocketServer({
        getRequestHandler: sslConfig
          ? this._trustedRequestHandler
          : this._untrustedRequestHandler,
        transport: new RSocketTCPServer({
          port: port,
          serverFactory: serverFactory,
        }),
      });
      rsServer && rsServer.start();
    });
  }
github facebook / flipper / src / server.tsx View on Github external
console.debug(
              `${
                sslConfig ? 'Secure' : 'Certificate'
              } server started on port ${port}`,
              'server',
            );
            server.emit('listening', port);
            resolve(rsServer);
          });
        return transportServer;
      };
      rsServer = new RSocketServer({
        getRequestHandler: sslConfig
          ? this._trustedRequestHandler
          : this._untrustedRequestHandler,
        transport: new RSocketTCPServer({
          port: port,
          serverFactory: serverFactory,
        }),
      });
      rsServer && rsServer.start();
    });
  }
github rsocket / rsocket-js / packages / rsocket-examples / src / SimpleServer.js View on Github external
function getTransport(protocol: string, options: ServerOptions) {
  switch (protocol) {
    case 'tcp':
      return new RSocketTCPServer({...options});
    case 'ws':
    default:
      return new RSocketWebSocketServer({...options});
  }
}
github rsocket / rsocket-js / packages / rsocket-examples / src / SimpleCli.js View on Github external
function getServerTransport(protocol: string, options: ServerOptions) {
  switch (protocol) {
    case 'tcp':
    default:
      return new RSocketTCPServer({...options});
    case 'ws':
      return new RSocketWebSocketServer({...options});
  }
}

rsocket-tcp-server

RSocket TCP server

Apache-2.0
Latest version published 10 months ago

Package Health Score

70 / 100
Full package analysis

Popular rsocket-tcp-server functions

Similar packages