This is an interactive application where you send messages through a web application. The socket server receives the messages and broadcasts the messages to all socket clients. You can open multiple browser windows to act as multiple socket clients. The web application is served using Drash.
-
Clone the repo and go into the
/example_apps/chat
directory.$ git clone https://github.com/drashland/sockets.git $ cd sockets/example_apps/chat
-
Start the server.
$ deno run --allow-net --allow-read app.ts
-
Go to
localhost:3001
in your browser. Remember, open additional browser windows to act as multiple clients. -
Start sending messages between clients.
Your experience should be something similar to the following: