mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add rsocket types * Drop `types` from `tsconfig.json Use triple-slash references * Fix linting errors * Remove private members * Fix linting errors
15 lines
456 B
TypeScript
15 lines
456 B
TypeScript
import { DuplexConnection } from 'rsocket-types';
|
|
import { Encoders, TransportServer } from 'rsocket-core';
|
|
import { EventEmitter } from 'events';
|
|
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;
|
|
}
|