skip to Main Content

Redis – Laravel echo server won't start

Laravel echo server keeps returning failed status on my server Code laravel-echo-server.json { "authHost": "http://example.com", "authEndpoint": "/broadcasting/auth", "clients": [ { "appId": "311dr094tf98745ce", "key": "fa43bffb3rth63f5ac9c386916ae28e6" } ], "database": "redis", "databaseConfig": { "redis": {}, "sqlite": { "databasePath": "/database/laravel-echo-server.sqlite" } }, "devMode": false,…

VIEW QUESTION

Redis – Variable scope inside loop with async call

I'm making an async call (https://github.com/socketio/socket.io-redis#redisadapterclientsroomsarray-fnfunction) with socket.io inside of a loop. elements.forEach((element) => { const foo = { id: element.id, name: element.name, }; // async code io.in(element.id).clients((err, clients) => { foo.clients = clients; }); }); Since this loop will…

VIEW QUESTION
Back To Top
Search