An open API service indexing awesome lists of open source software.

https://github.com/denoplayground/websocketserver

Simple WebSocket server implemented in Deno.
https://github.com/denoplayground/websocketserver

deno deno-module websocket websocket-server

Last synced: about 1 month ago
JSON representation

Simple WebSocket server implemented in Deno.

Awesome Lists containing this project

README

          

# Deno webSocketServer

Simple WebSocket server implemented in Deno.

## Usage
Here is an example for a simple WebSocket server that logs the incoming message event.

```ts
webSocketServer(
{
hostname: 'localhost',
port: 8080
},
(webSocket) => {
webSocket.addEventListener(
'message',
(event) => {
console.log(`MessageEvent: ${event}`);
}
)
}
)
```