Closed bennibau closed 1 year ago
@jamiewest could you merge that change?
[log] The HttpConnection connected successfully. [log] Sending handshake request. [log] (WebSockets transport) sending data. String data of length '32'. Content: '{"protocol":"json","version":1}'. [log] Using HubProtocol 'json'. [log] (WebSockets transport) socket closed. [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Exception: WebSocket closed with status code: 1002 (null). can't connect
In my project I need the possibility to send a custom header which is needed for authentication so I extended the library to consume option custom headers. They are attached to the HTTP request in the same manner as the Authentication header from the token factory is added.