Gathering detailed insights and metrics for @types/sockjs-client
Gathering detailed insights and metrics for @types/sockjs-client
Gathering detailed insights and metrics for @types/sockjs-client
Gathering detailed insights and metrics for @types/sockjs-client
The repository for high quality TypeScript type definitions.
npm install @types/sockjs-client
Typescript
Module System
100
Supply Chain
84.4
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.89%)
JavaScript (0.1%)
Shell (0.01%)
Total Downloads
28,373,625
Last Day
9,330
Last Week
90,885
Last Month
415,281
Last Year
4,570,759
NOASSERTION License
49,669 Stars
89,250 Commits
30,386 Forks
642 Watchers
5 Branches
9,956 Contributors
Updated on May 02, 2025
Latest Version
1.5.4
Package Id
@types/sockjs-client@1.5.4
Unpacked Size
5.44 kB
Size
1.97 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
-48.5%
9,330
Compared to previous day
Last Week
2.1%
90,885
Compared to previous week
Last Month
-2.4%
415,281
Compared to previous month
Last Year
19.1%
4,570,759
Compared to previous year
npm install --save @types/sockjs-client
This package contains type definitions for sockjs-client (https://github.com/sockjs/sockjs-client).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sockjs-client.
1export = SockJS; 2export as namespace SockJS; 3 4declare const SockJS: { 5 new(url: string, _reserved?: any, options?: SockJS.Options): WebSocket; 6 (url: string, _reserved?: any, options?: SockJS.Options): WebSocket; 7 prototype: WebSocket; 8 CONNECTING: SockJS.CONNECTING; 9 OPEN: SockJS.OPEN; 10 CLOSING: SockJS.CLOSING; 11 CLOSED: SockJS.CLOSED; 12}; 13 14declare namespace SockJS { 15 type CONNECTING = 0; 16 type OPEN = 1; 17 type CLOSING = 2; 18 type CLOSED = 3; 19 20 type State = CONNECTING | OPEN | CLOSING | CLOSED; 21 22 interface BaseEvent extends Event { 23 type: string; 24 } 25 26 type OpenEvent = BaseEvent; 27 28 interface CloseEvent extends BaseEvent { 29 code: number; 30 reason: string; 31 wasClean: boolean; 32 } 33 34 interface MessageEvent extends BaseEvent { 35 data: string; 36 } 37 38 type SessionGenerator = () => string; 39 40 interface Options { 41 server?: string | undefined; 42 sessionId?: number | SessionGenerator | undefined; 43 transports?: string | string[] | undefined; 44 timeout?: number | undefined; 45 } 46} 47
These definitions were written by Emil Ivanov, Alexander Rusakov, BendingBender, Soner Köksal, and Alexander Putilov.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 29/30 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-04-28
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