@yurbajs/ws
v1.0.0-next.10
Published
WebSocket client for yurba.one
Maintainers
Readme
About
WebSocket client for yurba.one with real-time messaging support.
WARNING: it's alpha version
Install
Node.js 20 or newer is required.
npm install @yurbajs/ws
yarn add @yurbajs/ws
pnpm add @yurbajs/ws
bun add @yurbajs/wsExample usage
import { ReconnectingWebSocket } from '@yurbajs/ws';
const ws = new ReconnectingWebSocket(`wss://api.yurba.one/ws?token=${TOKEN}`);
ws.on('message', (message) => {
console.log('Received message:', message);
});
ws.on('open', () => {
console.log('WebSocket connected!');
});
ws.on('error', (error) => {
console.error('WebSocket error:', error);
});Links
Contributing
Want to help make yurba.js better?
- Found a bug? Open an issue.
- Have an idea? Start a discussion.
- Want to contribute code? Fork the repository and submit a pull request.
Please make sure to follow our coding style and test your changes before submitting.
Getting Help
Need assistance?
- Check the documentation first.
- Ask questions in our Chat.
- Browse existing issues and discussions.
