Skip to content

Commit bae1b87

Browse files
committed
[Modify] Add it
1 parent 9fb42cf commit bae1b87

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

websocket-sharp/Server/WebSocketBehavior.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,27 @@ protected Logger Log {
108108
}
109109
}
110110

111+
/// <summary>
112+
/// Gets the query string included in a WebSocket handshake request.
113+
/// </summary>
114+
/// <value>
115+
/// <para>
116+
/// A <see cref="NameValueCollection"/> that contains the query
117+
/// parameters.
118+
/// </para>
119+
/// <para>
120+
/// An empty collection if not included.
121+
/// </para>
122+
/// <para>
123+
/// <see langword="null"/> if the session has not started yet.
124+
/// </para>
125+
/// </value>
126+
protected NameValueCollection QueryString {
127+
get {
128+
return _context != null ? _context.QueryString : null;
129+
}
130+
}
131+
111132
/// <summary>
112133
/// Gets the management function for the sessions in the service.
113134
/// </summary>

0 commit comments

Comments
 (0)