Complete the realtime chat room application implementation using Deno and WebSockets.
WebSocket is actually a protocol that enables bidirectional communication between the client and the server of a web application over a single long living TCP connection.
We are going to build the web application using:
- Deno v1.3.3
First of all, you need to install deno for your operating system: https://deno.land/#installation
You can customize the option and change the default deno version at the guide: https://github.com/denoland/deno_install#install-and-manage-multiple-versions
$ git clone https://github.com/TanHongIT/Deno_Realtime_Chat_App
$ cd Deno_Realtime_Chat_App
For windows
$ deno run --allow-net --allow-read server.js
For linux ubuntu
$ sudo /home/user/.deno/bin/deno run --allow-net --allow-read server.js
Don't forget to change "user" to the default user name for ubuntu.
Example: sudo /home/tanhongit/.deno/bin/deno run --allow-net --allow-read server.js
And now go to http://localhost:3000/
Link Demo: https://deno-realtime-chat.herokuapp.com/
Read more: Chat Room Realtime App With Ruby on Rails : https://github.com/TanHongIT/chat_room_rails_6