Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Kiyo5hi/elysia-ws-event

An template for event-driven Elysia WebSocket server
https://github.com/Kiyo5hi/elysia-ws-event

Last synced: 3 months ago
JSON representation

An template for event-driven Elysia WebSocket server

Awesome Lists containing this project

README

        

# elysia-ws-event

This project is meant to be a template repository for event-driven Elysia websocket server.

To start, just:

```bash
bun dev
```

The server is capable to send out multiple responses to the same request if needed, it also supports a mix of sync and async responses to the same client.

You can read `isHealthy/handlers.ts` to learn how to create an event handler, and read `handlers.ts` in the top-level directory to learn how to register an event handler.

Before production use, make sure the authentication is properly implemented since this project does not make any assumption on your authentication mechanism.