DefinitelyTyped/types/rsocket-websocket-server/RSocketWebSocketServer.d.ts
Oleh Dokuka 4d7955b2e9 Provides Aligning of RSocket-xxx definitions with the latest RSocket-JS release (#40580)
* provides alignment with the latest RSocket-JS

* provides alignment with the latest RSocket-JS

Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
2019-11-22 07:44:23 -08:00

14 lines
417 B
TypeScript

import { DuplexConnection } from 'rsocket-types';
import { Encoders, TransportServer } from 'rsocket-core';
import { Flowable } from 'rsocket-flowable';
import * as ws from 'ws';
/**
* A WebSocket transport server.
*/
export class RSocketWebSocketServer implements TransportServer {
constructor(options: ws.ServerOptions, encoders?: Encoders<any>);
start(): Flowable<DuplexConnection>;
stop(): void;
}