[Self-hosted] Realtime crashes with "Missing channels" + fatal Swoole\Server::exist() TypeError when
- 0
- Self Hosted
- Web
I'm unable to use the realtime connection on the latest appwrite client (npm)
When connecting to realtime it's getting stuck in a loop
browser prints: Realtime disconnected. Re-connecting in 1 seconds.
Server prints:
Connection open (user: 707)
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Missing channels
[Error] File: /usr/src/code/app/realtime.php
[Error] Line: 705
Connection close: 707
Fatal error: Uncaught TypeError: Swoole\Server::exist(): Argument #1 ($fd) must be of type int, array given
in /usr/src/code/vendor/utopia-php/websocket/src/WebSocket/Adapter/Swoole.php:54
import { Account, Channel, Client, Realtime, TablesDB } from "appwrite";
const client = new Client()
.setEndpoint(APPWRITE_ENDPOINT)
.setProject(APPWRITE_PROJECT_ID);
const realtime = new Realtime(client);
realtime.onOpen(() => {
console.log("Realtime connection opened"); // fires, then immediately drops
});
realtime.subscribe(
Channel.tablesdb(DATABASE_ID).table(COLLECTION_ID),
(event) => {
console.log("Realtime event:", event);
},
); ```
When downgrading the SDK to appwrite@24.2.0 it's able to connect to realtime without any issues.
Recommended threads
- Regarding Rate Limits
Hello, I am a student engineer who built an internal website for my university club using AppWrite. My club currently has around 500 members, and when I recent...
- Problem adding domain onto the project a...
I have used 2 domains on the project HavanaDev (havanadev.pro and havanadev.com). .com was just redirected to . Pro domain. .pro is expired, now I’d like to use...
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...