What problem does it solve?
This Skill automates the process of mapping file system structures to message routes, simplifying the creation and management of message handlers for various communication protocols like WebSockets, IPC, and Worker Threads.
Core Features & Use Cases
- File System as Router: Automatically registers message handlers based on file names and directory structures.
- Dynamic Parameter Support: Handles dynamic route parameters (e.g.,
[id]) for flexible message routing.
- Use Case: Quickly set up a message handling system where new message types can be added simply by creating new
.msg.ts files in a designated directory, without needing to manually update routing configurations.
Quick Start
Use the message-loader skill to load message handlers from the './messages' directory and dispatch a message to '/-/hello' with the data '{ name: "world" }'.