sockjs/ 000755 001751 000177 0000000000 14522451650 014041 5 ustar 00runner 000000 000000 14522451650 14522451650 sockjs/LICENSE 000644 001751 000177 0000002165 14522451650 015052 0 ustar 00runner 000000 000000 14522451650 14522451650 MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
sockjs/README.md 000644 001751 000177 0000003734 14522451650 015335 0 ustar 00runner 000000 000000 14522465237 14522451650 # Installation
> `npm install --save @types/sockjs`
# Summary
This package contains type definitions for sockjs (https://github.com/sockjs/sockjs-node).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sockjs.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sockjs/index.d.ts)
````ts
///
import http = require("http");
export interface ServerOptions {
sockjs_url?: string | undefined;
prefix?: string | undefined;
response_limit?: number | undefined;
websocket?: boolean | undefined;
jsessionid?: any;
log?(severity: string, message: string): void;
heartbeat_delay?: number | undefined;
disconnect_delay?: number | undefined;
}
export function createServer(options?: ServerOptions): Server;
export interface Server extends NodeJS.EventEmitter {
installHandlers(server: http.Server, options?: ServerOptions): any;
on(event: "connection", listener: (conn: Connection) => any): this;
on(event: string, listener: Function): this;
}
export interface Connection extends NodeJS.ReadWriteStream {
remoteAddress: string;
remotePort: number;
address: {
[key: string]: {
address: string;
port: number;
};
};
headers: {
[key: string]: string;
};
url: string;
pathname: string;
prefix: string;
protocol: string;
readyState: number;
id: string;
close(code?: string, reason?: string): boolean;
destroy(): void;
on(event: "data", listener: (message: string) => any): this;
on(event: "close", listener: () => void): this;
on(event: string, listener: Function): this;
}
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Phil McCloghry-Laing](https://github.com/pmccloghrylaing).
sockjs/index.d.ts 000644 001751 000177 0000002523 14522451650 015744 0 ustar 00runner 000000 000000 14522451650 14522451650 ///
import http = require("http");
export interface ServerOptions {
sockjs_url?: string | undefined;
prefix?: string | undefined;
response_limit?: number | undefined;
websocket?: boolean | undefined;
jsessionid?: any;
log?(severity: string, message: string): void;
heartbeat_delay?: number | undefined;
disconnect_delay?: number | undefined;
}
export function createServer(options?: ServerOptions): Server;
export interface Server extends NodeJS.EventEmitter {
installHandlers(server: http.Server, options?: ServerOptions): any;
on(event: "connection", listener: (conn: Connection) => any): this;
on(event: string, listener: Function): this;
}
export interface Connection extends NodeJS.ReadWriteStream {
remoteAddress: string;
remotePort: number;
address: {
[key: string]: {
address: string;
port: number;
};
};
headers: {
[key: string]: string;
};
url: string;
pathname: string;
prefix: string;
protocol: string;
readyState: number;
id: string;
close(code?: string, reason?: string): boolean;
destroy(): void;
on(event: "data", listener: (message: string) => any): this;
on(event: "close", listener: () => void): this;
on(event: string, listener: Function): this;
}
sockjs/package.json 000644 001751 000177 0000001505 14522451650 016336 0 ustar 00runner 000000 000000 14522465237 14522451650 {
"name": "@types/sockjs",
"version": "0.3.36",
"description": "TypeScript definitions for sockjs",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sockjs",
"license": "MIT",
"contributors": [
{
"name": "Phil McCloghry-Laing",
"githubUsername": "pmccloghrylaing",
"url": "https://github.com/pmccloghrylaing"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/sockjs"
},
"scripts": {},
"dependencies": {
"@types/node": "*"
},
"typesPublisherContentHash": "fe77463f92d47c65ca417ab3bb87eef15b8384cdce2ab2199fcc8deae14be36e",
"typeScriptVersion": "4.5"
}