OpenSync 1.0
Send data from your apps to a channel over HTTP and deliver it live to every connected client over WebSocket or Server-Sent Events.
Getting started
-
Introduction
What OpenSync is, how it works and where to start.
-
Install from source
Install OpenSync with Node.js and start it on your computer or server.
-
Install with Docker
Build the OpenSync image from the repository and run it with a volume for your data.
-
First setup
Name your instance, keep the setup token and save the first setup.
-
The setup interface
Open the setup interface with your setup token, find your way around and sign out.
Setup
-
Access tokens
Create, edit, copy and remove the tokens your apps use to connect.
-
Limit a token to channels
Choose which channels the clients of an access token receive.
-
Log all requests
Keep a file with every message that goes through OpenSync.
-
Disconnect the setup interface
Lock the setup interface for everyone, and open it again from the data folder.
-
Connected clients
See which apps are connected to OpenSync over WebSocket.
-
Extensions
Add, download and remove extensions, such as the Slack extension.
-
Update the bundle
Replace the app.bundle file of a bundled OpenSync from the setup interface.
-
Run in production
Start OpenSync in release mode and keep it safe on a public server.
Protocol
-
Send data over HTTP
Send a request to /sync/{channel}/ to deliver its data to the clients of that channel.
-
WebSocket
Connect over WebSocket to receive messages, and send messages to a channel.
-
Server-Sent Events
Receive messages as a Server-Sent Events stream, for scripts and command-line tools.
-
Message format
The fields of the messages that OpenSync sends to clients.
-
Send files
Upload files to a channel and download them from the link in the message.
-
Status codes and limits
The answers of OpenSync, the WebSocket close codes and the limits.
Files and data
-
The data folder
What OpenSync saves in its databases folder, and how to back it up.
Recipes
-
Listen from Node.js
A small Node.js script that receives the messages and reconnects when the connection drops.
-
Listen in a web page
Show live messages in a web page with the browser WebSocket.
-
Receive Slack events
Forward Slack events to your clients with the Slack extension.
FAQ
-
Access problems
What to do when the setup interface or a client cannot get in.
-
Message problems
What to check when a client does not receive what you send.