Gathering detailed insights and metrics for mocket-io
Gathering detailed insights and metrics for mocket-io
Gathering detailed insights and metrics for mocket-io
Gathering detailed insights and metrics for mocket-io
npm install mocket-io
Typescript
Module System
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
68 Commits
3 Forks
24 Watchers
1 Branches
4 Contributors
Updated on Jan 28, 2023
Latest Version
0.2.3
Package Id
mocket-io@0.2.3
Size
8.50 kB
NPM Version
2.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A partial mock of Socket.IO for use with Incubator projects
##Usage
###Creating Client- and Server-side socket interfaces var mocket = require("mocket-io");
var server = new mocket.Server();
var client = new mocket.Client(server);
var clientSocket;
var serverSocket;
server.once("connection", function (socket) {
serverSocket = socket;
});
clientSocket = client.connect();
####More compact: client-only var mocket = require("mocket-io");
var client = new mocket.Client(new mocket.Server());
var clientSocket = client.connect();
###Subscribing to a message type anySocket.on("persistentEventType", callback); anySocket.once("oneTimeEventType", callback);
###Sending a message to the server serverSocket.on("messageType", function (message) { console.log(message); }); clientSocket.emit("messageType", "message");
###Joining a room serverSocket.join("roomName");
###Sending a message to a room serverSocket.to("roomName").emit("messageType", "message");
###Unsubscribing a handler anySocket.off("eventType", oldHandler);
###Unsubscribing all handlers anySocket.off("eventType");
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 8/18 approved changesets -- score normalized to 4
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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