The main WebSocket is used to:
- execute commands
- get channels list
- create a new channel
- remove an existing channel
- send notifications to a specific channel
- listen a channel
- listen a database table
- unlisten a channel
- unlisten a table
An optional secondary Pub/Sub WebSocket is used to receive notifications sent by others users (only if at least one channel/table listening command is performed).
How to use
To get started you have to have your
PROJECT_ID associated to an SQLite Cloud cluster from the SQLiteCloud dashboard.
It is very important to emphasize that once you have created and registered channels or tables for PUB/SUB communications, if you are only interested in receiving messages, you can close the main WebSocket, leaving open only the Pub/Sub WebSocket.