Skip to content

Commit

Permalink
Merge pull request #44 from fEyebrow/initial-content
Browse files Browse the repository at this point in the history
Support for obtaining the current online client
  • Loading branch information
dmonad authored Mar 21, 2023
2 parents 3acefb8 + 9d399e3 commit ac29b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const onconnection = conn => {
if (message.topic) {
const receivers = topics.get(message.topic)
if (receivers) {
message.clients = receivers.size
receivers.forEach(receiver =>
send(receiver, message)
)
Expand Down

0 comments on commit ac29b5d

Please sign in to comment.