
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
mokou-websocket
Advanced tools
Reconnecting web socket
var MokouWebsocket = require("mokou-websocket");
var ws = new MokouWebsocket("ws://127.0.0.1:8001");
ws.onopen=function(e){
//onopen
}
ws.onclose=function(e){
//onclose
}
ws.onconnecting=function(e){
//onconnecting
}
ws.onerror=function(e){
//onerror
}
ws.onmessage=function(e){
//onmessage
}
Kind: global class
number
MokouWebsocket - simple reconnecting websocket for nodejs
Param | Type | Default | Description |
---|---|---|---|
url | string | WebSocket url | |
[protocols] | Array.<Object> | [] | WebSocket protocols |
number
Websocket state
Kind: instance property of MokouWebsocket
WebSocket events callbacks
Kind: instance method of MokouWebsocket
Param | Description |
---|---|
e | WebSocket event |
Sends given string to the other side
Kind: instance method of MokouWebsocket
Param | Type |
---|---|
data | string |
Close WebSocket connection
Kind: instance method of MokouWebsocket
Refresh WebSocket connection
Kind: instance method of MokouWebsocket
Kind: inner method of MokouWebsocket
Param | Type | Default | Description |
---|---|---|---|
[reconnectAttempt] | bool | false | indicates if MokouWebSocket trying to reconnect to server |
FAQs
Reconnecting websocket
The npm package mokou-websocket receives a total of 5 weekly downloads. As such, mokou-websocket popularity was classified as not popular.
We found that mokou-websocket 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.