doghappy / socket.io-client-csharp

socket.io-client implemention for .NET
MIT License
721 stars 124 forks source link

'SocketIOOptions' does not contain a definition for 'ExtraHeaders' #270

Open appjitsu opened 2 years ago

appjitsu commented 2 years ago

Unity 2020 socket.io-client-csharp - v3.0.5

using SocketIOClient;
.....

var client = new SocketIO(this.API_ENDPOINT, new SocketIOOptions
{
    ExtraHeaders = new Dictionary<string, string>
    {
        {"Authorization", $"bearer {jwe}"},
        {"SessionID", sessionId }
    }
});
appjitsu commented 2 years ago

https://github.com/doghappy/socket.io-client-csharp/blob/5a164d88463640f8a9874342bcaaf1d3bcfe03cf/src/SocketIOClient.UnitTest/SocketIOTest.cs#L321

doghappy commented 2 years ago

sorry?