echo icon indicating copy to clipboard operation
echo copied to clipboard

authEndpoint probably not used?

Open SidneySaints opened this issue 3 years ago • 0 comments

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?

SidneySaints avatar Sep 06 '21 17:09 SidneySaints