primus-rooms | Node Plugin for adding rooms functionality to Primus | Runtime Evironment library
kandi X-RAY | primus-rooms Summary
kandi X-RAY | primus-rooms Summary
Node.JS module that adds room capabilities to a Primus server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of primus-rooms
primus-rooms Key Features
primus-rooms Examples and Code Snippets
Community Discussions
Trending Discussions on primus-rooms
QUESTION
I have a primus server that runs on the sockjs transformer. I'm using the primus-rooms plugin to support rooms. Joining and leaving rooms is successful, I can send messages to clients that are connected to specific rooms.
At some point I need to retrieve all the connected clients in a specific room. I want to use this: https://github.com/cayasso/primus-rooms#primusroomroomclientsfn
...ANSWER
Answered 2017-Aug-30 at 07:29The handler function is fn(error, clients) and not fn(clients). Changing the code to the following resulted in the expected behavior:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install primus-rooms
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page