RTippin / messenger

Laravel messenger. A full messenger suite for your new / existing laravel app! Private and group threads between multiple models, with real-time messaging, reactions, attachments, calling, chat bots, and more!
https://tippindev.com
MIT License
417 stars 84 forks source link

How to fix "Connection error, messages may be delayed" ERROR in our Messenger UI ??? #67

Closed chegmarco1989 closed 1 year ago

chegmarco1989 commented 1 year ago

Hello.

After installing Meesenger on existing Laravel Application, we get this error "Connection error, messages may be delayed" as you can see on the following screenshot:

We installed in our composer:

"beyondcode/laravel-websockets": "^1.12",
"pusher/pusher-php-server": "^7.2",
"rtippin/janus-client": "^1.2",
"rtippin/messenger": "1.21.0",
"rtippin/messenger-ui": "^2.7",

And our .env file content is:

BROADCAST_DRIVER=pusher
CACHE_DRIVER=redis
SESSION_DRIVER=redis
QUEUE_CONNECTION=redis

REDIS_HOST=127.0.0.1
REDIS_SCHEME=tcp
REDIS_PASSWORD="OurRedisPassword"
REDIS_PORT=6379

#MESSENGER

MESSENGER_SITE_NAME="ERP Meet"
MESSENGER_CALLING_ENABLED=true
MESSENGER_SYSTEM_MESSAGES_ENABLED=true
MESSENGER_MESSAGE_SIZE_LIMIT=5000
MESSENGER_PUSH_NOTIFICATIONS_ENABLED=true
MESSENGER_PROVIDER_AVATARS_ENABLED=true
MESSENGER_THREAD_AVATARS_ENABLED=true
MESSENGER_BOT_AVATARS_ENABLED=true
MESSENGER_AVATARS_SIZE_LIMIT=5120
MESSENGER_AVATARS_MIME_TYPES="jpg,jpeg,png,bmp,gif,webp"
MESSENGER_MESSAGE_DOCUMENT_UPLOAD=true
MESSENGER_MESSAGE_DOCUMENT_SIZE_LIMIT=5120
MESSENGER_MESSAGE_DOCUMENT_MIME_TYPES="csv,doc,docx,json,pdf,ppt,pptx,rtf,txt,xls,xlsx,xml"
MESSENGER_MESSAGE_IMAGE_UPLOAD=true
MESSENGER_MESSAGE_IMAGE_SIZE_LIMIT=5120
MESSENGER_MESSAGE_IMAGE_MIME_TYPES="jpg,jpeg,png,bmp,gif,webp"
MESSENGER_MESSAGE_AUDIO_UPLOAD=true
MESSENGER_MESSAGE_AUDIO_SIZE_LIMIT=5120
MESSENGER_MESSAGE_AUDIO_MIME_TYPES="aac,mp3,oga,ogg,wav,weba,webm"
MESSENGER_MESSAGE_VIDEO_UPLOAD=true
MESSENGER_MESSAGE_VIDEO_SIZE_LIMIT=5120
MESSENGER_MESSAGE_VIDEO_MIME_TYPES="avi,mp4,ogv,webm,3gp,3g2,wmv,mov"
MESSENGER_MESSAGE_EDITS_ENABLED=true
MESSENGER_MESSAGE_EDITS_VIEW_HISTORY=true
MESSENGER_MESSAGE_REACTIONS_ENABLED=true
MESSENGER_MESSAGE_REACTIONS_MAX_UNIQUE=10
MESSENGER_INVITES_ENABLED=true
MESSENGER_INVITES_THREAD_MAX=10
MESSENGER_KNOCKS_ENABLED=true
MESSENGER_KNOCKS_TIMEOUT=5
MESSENGER_ONLINE_STATUS_ENABLED=true
MESSENGER_ONLINE_STATUS_LIFETIME=4
MESSENGER_VERIFY_PRIVATE_THREAD_FRIENDSHIP=true
MESSENGER_VERIFY_GROUP_THREAD_FRIENDSHIP=true

#Pusher/Websockets

PUSHER_APP_ID="Meet-ERP-Id-2023"
PUSHER_APP_KEY="Meet-ERP-Key-2023"
PUSHER_APP_SECRET="MeetERP@1996"
PUSHER_APP_CLUSTER="Meet-ERP"
MESSENGER_SOCKET_PUSHER=false
MESSENGER_SOCKET_KEY="${PUSHER_APP_KEY}"
MESSENGER_SOCKET_CLUSTER="${PUSHER_APP_CLUSTER}"

#JANUS

JANUS_SERVER_ENDPOINT="http://127.0.0.1:8088/janus"
JANUS_SERVER_ADMIN_ENDPOINT="http://127.0.0.1:7088/admin"
JANUS_VERIFY_SSL=false
JANUS_DEBUG=false
JANUS_ADMIN_SECRET="Jav11111111111"
JANUS_API_SECRET="JanusAPISecret2222"
JANUS_VIDEO_ROOM_SECRET="JanusVideoRoomSecret123"
JANUS_CLIENT_DEBUG=false

CAN ANYONE HELP US TO FIX THAT ERROR PLEASE ???