File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
EngineIoClientDotNet.Tests.mono/ClientTests
EngineIoClientDotNet.mono/Client Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,15 @@ public void OpenAndClose()
26
26
27
27
var events = new ConcurrentQueue < string > ( ) ;
28
28
29
- var socket = new Socket ( CreateOptions ( ) ) ;
29
+ var options = CreateOptions ( ) ;
30
+ options . Query = new Dictionary < string , string >
31
+ {
32
+ {
33
+ "access_token" , "akaka"
34
+ }
35
+ } ;
36
+ options . QueryString = "akka=ekek" ;
37
+ var socket = new Socket ( options ) ;
30
38
socket . On ( Socket . EVENT_OPEN , ( ) =>
31
39
{
32
40
log . Info ( "EVENT_OPEN" ) ;
Original file line number Diff line number Diff line change @@ -141,6 +141,16 @@ public Socket(Options options)
141
141
Hostname = options . Hostname ;
142
142
Port = options . Port ;
143
143
Query = options . QueryString != null ? ParseQS . Decode ( options . QueryString ) : new Dictionary < string , string > ( ) ;
144
+
145
+ if ( options . Query != null )
146
+ {
147
+ foreach ( var item in options . Query )
148
+ {
149
+ Query . Add ( item . Key , item . Value ) ;
150
+ }
151
+ }
152
+
153
+
144
154
Upgrade = options . Upgrade ;
145
155
Path = ( options . Path ?? "/engine.io" ) . Replace ( "/$" , "" ) + "/" ;
146
156
TimestampParam = ( options . TimestampParam ?? "t" ) ;
You can’t perform that action at this time.
0 commit comments