
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
websocket-mock-server
Advanced tools
A simple and configurable mock server with UI console for websocket, with which you can either send message manually or make rules to get matched response. Err... It's hard to summarize, Let's take a look!
npm install websocket-mock-server
or
yarn add websocket-mock-server
git clone https://github.com/EmiyaYang/websocket-mock-server.git
npm install
npm run build
npm run test
or
yarn install
yarn build
yarn test
package.json
{
"script": {
"mock": "wsmock -c CONFIG_PATH"
}
}
The following config.js will be used and watched as default config when no CONFIG_PATH
is provided.
module.exports = {
port: 4040,
// a function exported to handle specific input and return output which will be sending later.
rule: function (input) {}
// set the delay time before sending auto message
autoMsgTimeout: 1000,
};
Terminal
npm run mock
or
yarn mock
UI Console provide a chatroom-like way for you to send WebSocket message to server, which will be broadcast to other clients.
FAQs
provide mock server for native websocket test
The npm package websocket-mock-server receives a total of 0 weekly downloads. As such, websocket-mock-server popularity was classified as not popular.
We found that websocket-mock-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.