Phoenix Channels Client
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 =let socket = "ws://example.com/socket"socket// Now that you are connected, you can join channels with a topic:let channel = socketchannel
Presence is also available
npm install --save phoenix-channels
API was made by authors of the Phoenix Framework
- see their website for complete list of authors.
Ported to Node.js by Mario Campa
The same as Phoenix Framework (MIT)