mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
. (#37761)
This commit is contained in:
committed by
Sheetal Nandi
parent
55d1833091
commit
70b782ba42
@@ -12,15 +12,22 @@ import {
|
||||
} from 'rsocket-core';
|
||||
import * as ws from 'ws';
|
||||
|
||||
export interface ClientOptions {
|
||||
url: string;
|
||||
wsCreator?: (url: string) => WebSocket;
|
||||
debug?: boolean;
|
||||
lengthPrefixedFrames?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* A WebSocket transport client for use in browser environments.
|
||||
*/
|
||||
export default class RSocketWebSocketClient implements DuplexConnection {
|
||||
constructor(options: ws.ClientOptions, encoders?: Encoders<any>)
|
||||
close(): void;
|
||||
connect(): void;
|
||||
connectionStatus(): Flowable<ConnectionStatus>;
|
||||
receive(): Flowable<Frame>;
|
||||
sendOne(frame: Frame): void;
|
||||
send(frames: Flowable<Frame>): void;
|
||||
}
|
||||
constructor(options: ClientOptions, encoders?: Encoders<any>);
|
||||
close(): void;
|
||||
connect(): void;
|
||||
connectionStatus(): Flowable<ConnectionStatus>;
|
||||
receive(): Flowable<Frame>;
|
||||
sendOne(frame: Frame): void;
|
||||
send(frames: Flowable<Frame>): void;
|
||||
}
|
||||
|
||||
1
types/rsocket-websocket-client/index.d.ts
vendored
1
types/rsocket-websocket-client/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for rsocket-websocket-client 0.0
|
||||
// Project: https://github.com/rsocket/rsocket-js/
|
||||
// Definitions by: Adrian Hope-Bailie <https://github.com/adrianhopebailie>
|
||||
// Bryce Matheson <https://github.com/brycematheson1234>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user