Using Laravel Reverb with Laravel and Nuxt and multiple apps/layers #902
Unanswered
torbentschechne
asked this question in
Q&A
Replies: 1 comment
-
I found this answer on StackOverflow:
When I test it on Firefox, it works in both apps. It does not make total sense, because both apps are running at http without a certificate, but in Chrome only one app is working. Currently I can not secure the Reverb Server via Herd, right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a weird issue. I am using Laravel Herd Pro locally for development and I added a Laravel Reverb Server using the Services in Herd. I got these credentials:
On the frontend I use VueJs/Nuxt and within Nuxt I use layers for having multiple apps in one Repo. I have also a
packages/core
structure within Nuxt to store everything here that needs to be shared through the apps. Now I did the following:I created a Nuxt plugin "reverb.ts" in
packages/core
for testing purposes like this:Then I added the .env variables to both of my apps (App A and App B) in Nuxt:
What's weird now is: I open the first app and see in the network tab that a WS connection is established. I fire an event in the backend and this one is viewable in the console.
I open up the second app in the browser and I can see
Echo InitiliazedPlugin
in the console as well. However I get this infoBut why? First I thought maybe it has something to do with the fact that App B is only reachable when you are logged in, but this should be independently from the WS connection as this one will be made to the Reverb server and not to the Laravel backend. Then I fired up a second reverb server and used this credentials in the second App, with no success.
Does anybody have an idea? Is this Herd related (has the Server any restrictions?) or am I forgetting something?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions