Skip to content

Commit a277190

Browse files
committed
README clarification
1 parent ff7106d commit a277190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ On a specific session (possibly hosted on a different worker process):
253253
// Function signature: emit(sessionId, event, data, callback)
254254
socket.global.emit('localhost_9101_8000_0_47kR_u7W4LGk56rSAAAA', 'foo', eventData, callback);
255255
```
256-
^ Generally, you should avoid targeting clients explicitly - Instead, you should use a pub/sub approach.
256+
^ Generally, you should avoid targeting clients explicitly - Instead, you should use a pub/sub approach using global events and middleware for auth.
257257

258258
Broadcast to all interested sockets/sessions (on all worker processes):
259259
```js

0 commit comments

Comments
 (0)