Gathering detailed insights and metrics for @types/sockjs
Gathering detailed insights and metrics for @types/sockjs
Gathering detailed insights and metrics for @types/sockjs
Gathering detailed insights and metrics for @types/sockjs
The repository for high quality TypeScript type definitions.
npm install @types/sockjs
Typescript
Module System
99.8
Supply Chain
86.1
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
1,237,518,719
Last Day
474,758
Last Week
10,991,278
Last Month
42,619,393
Last Year
473,192,464
NOASSERTION License
49,793 Stars
89,433 Commits
30,398 Forks
640 Watchers
6 Branches
9,958 Contributors
Updated on May 25, 2025
Latest Version
0.3.36
Package Id
@types/sockjs@0.3.36
Unpacked Size
5.23 kB
Size
1.98 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
12.2%
474,758
Compared to previous day
Last Week
3.9%
10,991,278
Compared to previous week
Last Month
-3.5%
42,619,393
Compared to previous month
Last Year
16.1%
473,192,464
Compared to previous year
1
npm install --save @types/sockjs
This package contains type definitions for sockjs (https://github.com/sockjs/sockjs-node).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sockjs.
1/// <reference types="node" /> 2 3import http = require("http"); 4 5export interface ServerOptions { 6 sockjs_url?: string | undefined; 7 prefix?: string | undefined; 8 response_limit?: number | undefined; 9 websocket?: boolean | undefined; 10 jsessionid?: any; 11 log?(severity: string, message: string): void; 12 heartbeat_delay?: number | undefined; 13 disconnect_delay?: number | undefined; 14} 15 16export function createServer(options?: ServerOptions): Server; 17 18export interface Server extends NodeJS.EventEmitter { 19 installHandlers(server: http.Server, options?: ServerOptions): any; 20 21 on(event: "connection", listener: (conn: Connection) => any): this; 22 on(event: string, listener: Function): this; 23} 24 25export interface Connection extends NodeJS.ReadWriteStream { 26 remoteAddress: string; 27 remotePort: number; 28 address: { 29 [key: string]: { 30 address: string; 31 port: number; 32 }; 33 }; 34 headers: { 35 [key: string]: string; 36 }; 37 url: string; 38 pathname: string; 39 prefix: string; 40 protocol: string; 41 readyState: number; 42 id: string; 43 44 close(code?: string, reason?: string): boolean; 45 destroy(): void; 46 47 on(event: "data", listener: (message: string) => any): this; 48 on(event: "close", listener: () => void): this; 49 on(event: string, listener: Function): this; 50} 51
These definitions were written by Phil McCloghry-Laing.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/29 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-05-19
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More