You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This updates the example in several ways:
- Send back the number of live connections. The docs say this WS server will send back the number of live connections and now it does.
- Removing the confusing `k` lambda parameter. The `k` in this case is unused and _not_ a key.
- Update the message contents so they are not the same in all cases.
session.send(`[Durable Object] message: ${message}, from: ${connection.id}, to: all clients except the initiating client. Total connections: ${this.sessions.size}`);
0 commit comments