You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/subscriptions/ably_implementation.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,7 @@ Read more here: ["Using CORS"](https://www.html5rocks.com/en/tutorials/cors/).
158
158
Your server needs to receive webhooks from Ably when clients disconnect. This keeps your local subscription database in sync with Ably.
159
159
160
160
### Server
161
+
161
162
*Note: if you're setting up in a development environment you should follow the [Developing with webhooks](#Developing-with-webhooks) section first*
162
163
163
164
Mount the Rack app for handling webhooks from Ably. For example, on Rails:
@@ -176,6 +177,7 @@ end
176
177
```
177
178
178
179
### Ably
180
+
179
181
1. Go to the Ably dashboard
180
182
2. Click on your application.
181
183
3. Select the "Reactor" tab
@@ -187,6 +189,23 @@ end
187
189
9. Under "Sign with key" select the API Key prefix that matches the prefix of the ABLY_API_KEY you provided.
188
190
10. Click "Create"
189
191
192
+
## Authorization
193
+
194
+
You can use Ably's [token authentication](https://www.ably.io/documentation/realtime/authentication#token-authentication) by implementing an endpoint in your app, for example:
0 commit comments