Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active May 19, 2020
Embed
What would you like to do?
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