Skip to content

ptaushanov/deno-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Create vanilla Deno WS Server 🌐

This is a simple example of a vanilla Deno WebSocket server template. It's a simple chat server that broadcasts messages to all connected clients.


πŸ“¦ Dependencies πŸ“¦

Deno v1.35.X or higher

πŸš€ Run the server πŸš€

deno run --allow-net --allow-read app.ts

or run it from a URL

deno run --allow-net --allow-read https://raw.githubusercontent.com/ptaushanov/deno-ws/master/app.ts

Note:

Running the server from a URL will not download the public folder and the server will not be able to serve the static files.


πŸ“ License

This project is licensed under the MIT License - see the LICENSE.md file for details.