Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

307
Views
Laravel echo server console says left the channel and again joins the channel while navigating through pages?

I am trying to add realtime functionality to my laravel app which is being developed in laravel-5.4. So, I have implemented a simple chat example from the documentation that is laravel-echo-server with redis and socket.io. It’s working fine but I have noticed a weird behaviour that is when the user navigates to different pages across the application, the laravel-echo-server console says left the channel and again joined the channel so is it intended behaviour and what is the best practise to use it. am i doing something wrong here? I don't want him to left the channel, instead I want to stay him at the same connection.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If you change page, everything is lost and a new content is dowloaded from the server. So it's normal that the user "left the channel" then re"joined the channel". It's the intended behavior.

If you don't want this kind of behavior, you have to stay one the same page (so implementing something like a single page application). Because when you leave a page to go to another, current scripts stops then a new world is re-created.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!