PlayCanvas Chat Component

As I couldn’t find a simple single room (global) chat system with built-in emojis to use in my game, so developed a basic one myself.

Used socket.io for the messages, emoji-mart for the emojis support.

Server code: Glitch :・゚✧

Please make sure to fork it and replace it in the chatui.js file!

Project:

https://playcanvas.com/project/1262309/overview/playcanvas-chat-component

Try it here:

Improvements required:

  • Better styling
  • Mobile responsive
2 Likes

This is pretty cool.

1 Like

I have made the chat mobile responsive!

This is great! :heart_eyes:

I’ll definitely try to add it to one of my projects!

Maybe it’s possible to focus on the input automatically, so the keyboard on mobile opened directly.

1 Like

Yes, that is definitely possible.

But I think its better to make it focus when the user clicks on the input field.