Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kiyo5hi/elysia-ws-event
An template for event-driven Elysia WebSocket server
https://github.com/Kiyo5hi/elysia-ws-event
Last synced: 26 days ago
JSON representation
An template for event-driven Elysia WebSocket server
- Host: GitHub
- URL: https://github.com/Kiyo5hi/elysia-ws-event
- Owner: Kiyo5hi
- Created: 2024-03-25T05:40:43.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T07:25:47.000Z (8 months ago)
- Last Synced: 2024-07-19T18:54:15.614Z (5 months ago)
- Language: TypeScript
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-elysia - elysia-ws-event - Event-drive Elysia WebSocket server. (Boilerplates)
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.