kakajansh / echo

Laravel Echo for your Flutter apps.
MIT License
108 stars 70 forks source link

authEndpoint probably not used? #47

Open SidneySaints opened 3 years ago

SidneySaints commented 3 years ago

Hi, i`m using ^1.0.0-beta.1 of this package cause of null safety check. My WebApp is laravel 8 + jetstream (includes sanctum)

The WebApp should authenticate on /broadcasting/auth (this actually works) i want also to authenticate the FlutterApp against /api/broadcasting/auth

O.Socket socket = IO.io(
    'http://192.168.1.231:6001',
    IO.OptionBuilder().setTransports(['websocket']).build(),
 );

 Echo echo = new Echo(
      broadcaster: EchoBroadcasterType.SocketIO,
      client: socket,
      options: {
        'client': socket,
        'auth': {
          "headers": {'Authorization': 'Bearer $token'}
        },
        'authEndpoint': 'http://192.168.1.231:8080/api/broadcasting/auth',
 });

the app is keep trying to authenticate via /broadcasting/auth

am i doing anything wrong?