
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Node.js real-time client <-> server (between backend and browser) communication library for IPC.
Features:
npm install basic-ipc
Simple example of server and client communication using WebSocket:
const ipc = require('basic-ipc');
const server = ipc.createServer({
ws: { port: 8091 }
})
server.once('listening', () => {
const client = ipc.createClient({
ws: { url: 'ws://localhost:8091' }
})
client.once('open', () => {
client.sendMessage('hello', { world: '!' })
})
})
server.on('join', async (client) => {
client.receive('hello', (message) => {
console.log('Received hello message:', message)
server.close()
client.close()
})
})
In the browser, you can only create clients. basic-ipc exposes a special browser API that only exports code relevant to the client side. You can access it by importing basic-ipc/browser:
const ipc = require('basic-ipc/browser');
See the type definitions in index.d.ts for more information.
MIT
0.1.1
FAQs
IPC library for client-server comms over WebSockets and HTTP
We found that basic-ipc 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
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.