
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
English | 日本語
A powerful websocket library to interact with MCBE WebSocket Protocol
Requires Node.js v18 or later.
npm install socket-be
If you use this inside same device, allow the loopback connection.
CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.MinecraftUWP_8wekyb3d8bbwe"
You can use /wsserver
or /connect
command to connect with websocket server.
EX: /wsserver <IP Address>:<PORT>
import { Server, ServerEvent } from 'socket-be';
const server = new Server({ port: 8000 })
server.on(ServerEvent.Open, () => {
console.log('Server started')
});
server.on(ServerEvent.PlayerChat, async ev => {
const { sender, message, world } = ev;
if (sender.name === 'External') return; // prevents spam loop
console.log(`<${sender.name}> ${message}`);
if (message === 'ping') {
await world.sendMessage('Pong!');
}
});
This project is licensed under the GPL-3.0 License.
FAQs
This is a tool to connect with MinecraftBE via websocket easier.
The npm package socket-be receives a total of 25 weekly downloads. As such, socket-be popularity was classified as not popular.
We found that socket-be demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.