@vercube/ws
v0.0.43
Published
Websocket module for Vercube framework
Readme
@vercube/ws
WebSockets for Vercube apps
Real-time communication with decorators - @Message to listen, @Emit to respond, @Broadcast to send to everyone. Built on crossws.
✨ Features
- Decorator-based -
@Namespace,@Message,@Emit,@Broadcast - Connection control - validate who can connect with
@OnConnectionAttempt - Message validation - use Zod schemas to validate incoming data
- Namespaces - organize connections into logical groups
📦 Installation
pnpm add @vercube/ws📖 Usage
Check out the full documentation
