mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* provides alignment with the latest RSocket-JS * provides alignment with the latest RSocket-JS Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
14 lines
417 B
TypeScript
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;
|
|
}
|