-
-
Save uno-de-piera/b53cbc35f76f58fac9d2ecfc7d780b00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Echo from "laravel-echo" | |
import io from 'socket.io-client/dist/socket.io'; | |
const client = new Echo({ | |
broadcaster: 'socket.io' | |
host: 'http://127.0.0.1:8000, | |
client: io, | |
autoConnect: true, | |
forceNode: true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add laravel-echo socket.io-client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment