Skip to content

Commit

Permalink
rename message.number to message.clients
Browse files Browse the repository at this point in the history
  • Loading branch information
fEyebrow authored Mar 21, 2023
1 parent 946f612 commit 9d399e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const onconnection = conn => {
if (message.topic) {
const receivers = topics.get(message.topic)
if (receivers) {
message.number = receivers.size
message.clients = receivers.size
receivers.forEach(receiver =>
send(receiver, message)
)
Expand Down

0 comments on commit 9d399e3

Please sign in to comment.