@geut/socketich-cli

0.0.6 • Public • Published

Socketich Cli

Performant WebSocket server and persistent client powered by uWebSockets.js and PersistentWebSocket

Made by GEUT

Install

npm i -g @geut/socketich-cli

Usage

  1. Start server
$ socketich
// WS Server listeninig on ws://0.0.0.0:3000
  1. Create and connect a Socketich client
// Browser/Client app
await import('http://0.0.0.0:3000/client.min.js?format=iife')

client = new Client('ws://0.0.0.0:3000', Date.now())
await client.connected

room = client.createRoom('chat-with-socketich')
room.on('chat-message', message => console.log('New message:', message))
room.emit('chat-message', 'Hello there!')

Issues

🐛 If you found an issue we encourage you to report it on github. Please specify your OS and the actions to reproduce it.

Contributing

👥 Ideas and contributions to the project are welcome. You must follow this guideline.

License

MIT © A GEUT project

Readme

Keywords

none

Package Sidebar

Install

npm i @geut/socketich-cli

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

6.78 kB

Total Files

5

Last publish

Collaborators

  • geutuser
  • the-real-dk
  • tinchoz49
  • estebanprimost