diff --git a/websocket-sharp/Server/WebSocketBehavior.cs b/websocket-sharp/Server/WebSocketBehavior.cs
index ca94017f..b5e8ffeb 100644
--- a/websocket-sharp/Server/WebSocketBehavior.cs
+++ b/websocket-sharp/Server/WebSocketBehavior.cs
@@ -108,6 +108,27 @@ namespace WebSocketSharp.Server
}
}
+ ///
+ /// Gets the query string included in a WebSocket handshake request.
+ ///
+ ///
+ ///
+ /// A that contains the query
+ /// parameters.
+ ///
+ ///
+ /// An empty collection if not included.
+ ///
+ ///
+ /// if the session has not started yet.
+ ///
+ ///
+ protected NameValueCollection QueryString {
+ get {
+ return _context != null ? _context.QueryString : null;
+ }
+ }
+
///
/// Gets the management function for the sessions in the service.
///