vania-dart / framework

Fast, simple, and powerful backend framework for Dart built with ❤️
https://vdart.dev
MIT License
155 stars 12 forks source link

the server keeps connecting to clients even though the 'websocket' value in lib/config/app is false #78

Closed WissamALSbenaty closed 2 weeks ago

WissamALSbenaty commented 1 month ago

alternatively, it should be assigned to env('APP_WEBSOCKET')

I struggled to find out why the server always receives the message and sends "connect " message to the client without any effect and after a while I discovered that APP_WEBSOCKET in env file is set to false by default

javad-zobeidi commented 1 month ago

Please update to the last version of Vania

Websocket and some configs for better experience moved to the env file, and are no longer used since Vania 2.x

Use these files

The latest config file config/app.dart

Latest env file .env

WissamALSbenaty commented 1 month ago

i am using Vania 2.7 and created my project using the cli

maybe the starter project hasn't been updated? @javad-zobeidi