Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
phoenix-channels
Advanced tools
This is the Node.js client. If you need a client for the browser use phoenix
The differece with the original client is that this does not use long-polling and you need to pass the absolute url instead of the relative url.
This uses the same API as the original phoenix except that it needs an absolute url
const { Socket } = require('phoenix-channels')
let socket = new Socket("ws://example.com/socket")
socket.connect()
// Now that you are connected, you can join channels with a topic:
let channel = socket.channel("room:lobby", {})
channel.join()
.receive("ok", resp => { console.log("Joined successfully", resp) })
.receive("error", resp => { console.log("Unable to join", resp) })
Presence
is also available
npm install --save phoenix-channels
API was made by authors of the Phoenix Framework
Ported to Node.js by Mario Campa
The same as Phoenix Framework (MIT)
FAQs
Phoenix Channels Client
The npm package phoenix-channels receives a total of 2,500 weekly downloads. As such, phoenix-channels popularity was classified as popular.
We found that phoenix-channels 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.