Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active May 19, 2020 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/b53cbc35f76f58fac9d2ecfc7d780b00 to your computer and use it in GitHub Desktop.
Save uno-de-piera/b53cbc35f76f58fac9d2ecfc7d780b00 to your computer and use it in GitHub Desktop.
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
});
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