1.5.4 • Published 6 months ago
@types/sockjs-client v1.5.4
Installation
npm install --save @types/sockjs-client
Summary
This package contains type definitions for sockjs-client (https://github.com/sockjs/sockjs-client).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sockjs-client.
index.d.ts
// Type definitions for sockjs-client 1.5
// Project: https://github.com/sockjs/sockjs-client, http://sockjs.org
// Definitions by: Emil Ivanov <https://github.com/vladev>
// Alexander Rusakov <https://github.com/arusakov>
// BendingBender <https://github.com/BendingBender>
// Soner Köksal <https://github.com/renjfk>
// Alexander Putilov <https://github.com/PutilovAI>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = SockJS;
export as namespace SockJS;
declare const SockJS: {
new (url: string, _reserved?: any, options?: SockJS.Options): WebSocket;
(url: string, _reserved?: any, options?: SockJS.Options): WebSocket;
prototype: WebSocket;
CONNECTING: SockJS.CONNECTING;
OPEN: SockJS.OPEN;
CLOSING: SockJS.CLOSING;
CLOSED: SockJS.CLOSED;
};
declare namespace SockJS {
type CONNECTING = 0;
type OPEN = 1;
type CLOSING = 2;
type CLOSED = 3;
type State = CONNECTING | OPEN | CLOSING | CLOSED;
interface BaseEvent extends Event {
type: string;
}
type OpenEvent = BaseEvent;
interface CloseEvent extends BaseEvent {
code: number;
reason: string;
wasClean: boolean;
}
interface MessageEvent extends BaseEvent {
data: string;
}
type SessionGenerator = () => string;
interface Options {
server?: string | undefined;
sessionId?: number | SessionGenerator | undefined;
transports?: string | string[] | undefined;
timeout?: number | undefined;
}
}
Additional Details
- Last updated: Tue, 06 Jul 2021 16:35:05 GMT
- Dependencies: none
- Global values:
SockJS
Credits
These definitions were written by Emil Ivanov, Alexander Rusakov, BendingBender, Soner Köksal, and Alexander Putilov.
1.5.4
6 months ago
1.5.3
6 months ago
1.5.2
7 months ago
1.5.1
3 years ago
1.5.0
3 years ago
1.1.1
5 years ago
1.1.0
6 years ago
1.0.32
7 years ago
1.0.31
7 years ago
1.0.30
8 years ago
1.0.29
8 years ago
1.0.28
8 years ago
1.0.27
8 years ago
1.0.26
8 years ago
1.0.25-alpha
8 years ago
1.0.24-alpha
8 years ago
1.0.23-alpha
8 years ago
1.0.22-alpha
8 years ago
1.0.21-alpha
8 years ago
1.0.20-alpha
8 years ago
1.0.19-alpha
8 years ago
1.0.14-alpha
8 years ago
1.0.13-alpha
8 years ago