...
Эндпоинт для подключения: https wss://twin24.ai/centrifugo/connection/websocket
Пример на js
1. Создаем экземпляр класса Centrifuge, передаем ему URL сервера и создаем подключение:
| Блок кода | ||
|---|---|---|
| ||
const centrifuge = new Centrifuge( `${protocol}`wss://${window.location.host}twin24.ai/centrifugo/connection/websocket`websocket `, { data: { application: 'notifications', settings: { token: 'your_auth_token_here' }, }, }, ) |
...