Share your repls and programming experiences

← Back to all posts
Anonymous Chat
h
Vandesm14 (2737)

Anon Chat!
This is a chatting system which is completely anonymous. The only form of identification is a hex tag, which is only used to provide a way to tell which user is which. This tag is reset each time you refresh the page.

Bonus: If you embed this site, it'll still work! That little embedded repl down there is a working app. Fell free to try it out!

Features

  • Anonymity
  • Rooms

This is a somewhat lighter version of my other chatting system: https://chat.hyperjs.ml

Comments
hotnewtop
DefaultModels (0)

/home/runner/classchat/index.js:48
console.log(socket.proto.room);
^

TypeError: Cannot read property 'room' of undefined
at Socket.<anonymous> (/home/runner/classchat/index.js:48:28)
at Socket.emit (events.js:314:20)
at /home/runner/classchat/node_modules/socket.io/lib/socket.js:528:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
exit status 1

Do you know how to fix this?

DefaultModels (0)

It happens after some time
@Vandesm14

Vandesm14 (2737)

@DefaultModels It is definitely an issue with replit restarting, which I can't really prevent unless I rewrite the whole system (which I'm not going to do).