happones / nativescript-laravel-echo

A nativescript plugin for laravel-echo
Apache License 2.0
10 stars 2 forks source link

You must pass your app key when you instantiate Pusher #5

Closed lord-zeus closed 5 years ago

lord-zeus commented 5 years ago

When this.broadcast is set to true, it gives this error You must pass your app key when you instantiate Pusher but i'm using socket.io

happones commented 5 years ago

This is an example for socket.io

new TnsEcho({
        host: socketUrl,
        broadcaster: "socket.io",
        auth: {
            headers: {
                "Authorization": `Bearer ${token}`
            }
        }