How to use the rsocket-flowable.Flowable.never function in rsocket-flowable

To help you get started, we’ve selected a few rsocket-flowable 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 rsocket / rsocket-js / packages / rsocket-examples / src / SimpleCli.js View on Github external
function doOperation(
  socket: ReactiveSocket,
  operation: string,
  payload: string,
): Flowable> {
  switch (operation) {
    case 'none':
      return Flowable.never();
    case 'stream':
    default:
      console.log(`Requesting stream with payload: ${payload}`);
      return socket.requestStream({
        data: payload,
        metadata: '',
      });
  }
}
github rsocket / rsocket-js / packages / rsocket-core / src / RSocketLease.js View on Github external
  _sender: (?T) => Flowable = () => Flowable.never();
  _receiver: (Flowable) => void = leases => {};