Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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 1,863 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.