happones / nativescript-laravel-echo

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

authEndPoint #4

Closed lord-zeus closed 6 years ago

lord-zeus commented 6 years ago

what is the variable in front of the authEndpoint for ? this.Echo = new TnsEcho({ host: this.host, authEndpoint:${this.endpoint}/broadcasting/auth, broadcaster: this.broadcast?'pusher':'socket.io', key: this.key, debug: false, auth: { headers: { 'Authorization': this.token } } });

laravel authEndpoint is just the /broadcast/auth its from the demo application

happones commented 6 years ago

authEndpoint use only for broadcaster pusher, for socket.io use host