Giter VIP home page Giter VIP logo

Comments (9)

morloderex avatar morloderex commented on July 20, 2024

It is already implemented.
It's called leaving. You could also listen to the here callback which will execute whenever a person leaves or joins the channel.. :)

from echo.

dpollard avatar dpollard commented on July 20, 2024

Whoops, I forgot to change here to leaving - I am not looking for the leaving() implementation as it only notifies the other users that a user has left - I need it to notify the server that the user who left is no longer active.

from echo.

dpollard avatar dpollard commented on July 20, 2024

Re wrote the code because it didn't make sense but yeah. See original comment.

from echo.

akizor avatar akizor commented on July 20, 2024

Might wanna look at this stackoverflow question.
Also, if you're using pusher, they have Webhooks settings that you can use to notify your server about presence and events about a user, including leaving a channel. Not sure about socket implementation, but I somehow managed to read somewhere (and cant remember) that laravel-echo-server can help you with that.

from echo.

d-pollard avatar d-pollard commented on July 20, 2024

@akizor - the problem is getting echo to broadcast an event to the server, so none of the aforementioned projects would work, unfortunately. I ended up just rolling my own implementation based on echo-server (which I have scaled out on AWS ELB).

from echo.

driesvints avatar driesvints commented on July 20, 2024

Is this still a problem? If so I think we'd be open to PRs which would solve this somehow.

from echo.

ricardogobbosouza avatar ricardogobbosouza commented on July 20, 2024

@dpollard see https://pusher.com/tutorials/online-presence-laravel
Can close this?

from echo.

d-pollard avatar d-pollard commented on July 20, 2024

@ricardogobbosouza sure, you can close this

from echo.

ricardogobbosouza avatar ricardogobbosouza commented on July 20, 2024

@taylorotwell can close?

from echo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.