Skip to content

Commit

Permalink
Support for obtaining the current online client
Browse files Browse the repository at this point in the history
  • Loading branch information
fEyebrow authored Mar 21, 2023
1 parent 3acefb8 commit 946f612
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.number = receivers.size
receivers.forEach(receiver =>
send(receiver, message)
)
Expand Down

0 comments on commit 946f612

Please sign in to comment.