Skip to content

Commit

Permalink
chore: update socket
Browse files Browse the repository at this point in the history
  • Loading branch information
ynwd committed Nov 29, 2024
1 parent 5839374 commit 8e3f32e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/socket/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default function socketModule(s: Fastro) {
data: Data,
) {
const connected = ctx.stores.get("connected");
console.log("connected", JSON.stringify(connected));
if (data.user) {
connected?.set(data.user, { data, socket }, DAY);
}
Expand Down

0 comments on commit 8e3f32e

Please sign in to comment.