Giter VIP home page Giter VIP logo

Comments (9)

happyDemon avatar happyDemon commented on July 20, 2024

pusher is a hard dependency for some reason. doing a simple npm install pusher should do the trick

from echo.

mealinks avatar mealinks commented on July 20, 2024

I don't use pusher dependency, because i set up my Echo with socket. But thanks I figured out by creating a webpack.config.js where i skipped pusher-js.

from echo.

happyDemon avatar happyDemon commented on July 20, 2024

ah that was the other option indeed 👍

from echo.

BEY9S avatar BEY9S commented on July 20, 2024

It does @happyDemon , i did add also pusher-js and webpack passed.

can you tell me if i need to run laravel-echo-server each times i'd like to communicate my socket, also do i need socketIO configuration stuff in the client.

from echo.

happyDemon avatar happyDemon commented on July 20, 2024

This should do it:
new Echo({ broadcaster: 'socket.io', host: 'URL', })

You do have to keep the node server running to listen to/send events.
in a live environment you could do that with Supervisor or PM2

from echo.

martingg88 avatar martingg88 commented on July 20, 2024

@mealinks can i have an example for how you skip the pusher-js? many thanks

from echo.

BEY9S avatar BEY9S commented on July 20, 2024

Hey @martingg88

here is a relative issue #52

from echo.

driesvints avatar driesvints commented on July 20, 2024

Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.

from echo.

WhyIExist avatar WhyIExist commented on July 20, 2024

can someone help, I have this same issue

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.