From 497deeaa5f7abcbc67c8edd24e7db8217b4b81e3 Mon Sep 17 00:00:00 2001 From: Plague Fox Date: Sun, 5 May 2024 23:06:45 +0400 Subject: [PATCH] Update centrifugo-config.json and smoke_test.dart --- centrifugo-config.json | 24 +++++++++++++++++++++++- test/smoke/smoke_test.dart | 2 +- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/centrifugo-config.json b/centrifugo-config.json index 0967ef4..fe978db 100644 --- a/centrifugo-config.json +++ b/centrifugo-config.json @@ -1 +1,23 @@ -{} +{ + "admin": true, + "admin_insecure": true, + "namespaces": [ + { + "name": "public", + "presence": true, + "join_leave": true, + "force_push_join_leave": true, + "history_size": 10, + "history_ttl": "300s", + "force_recovery": true, + "allow_subscribe_for_client": true, + "allow_subscribe_for_anonymous": true, + "allow_publish_for_subscriber": true, + "allow_publish_for_anonymous": true, + "allow_history_for_subscriber": true, + "allow_history_for_anonymous": true, + "allow_presence_for_subscriber": true, + "allow_presence_for_anonymous": true + } + ] +} diff --git a/test/smoke/smoke_test.dart b/test/smoke/smoke_test.dart index 982fd59..2237e0c 100644 --- a/test/smoke/smoke_test.dart +++ b/test/smoke/smoke_test.dart @@ -8,7 +8,7 @@ void main() { final client = Spinify(); await client.connect(url); expect(client.state, isA()); - await client.ping(); + //await client.ping(); //await client.send(utf8.encode('Hello, Spinify!')); await client.disconnect(); expect(client.state, isA());