Fix due to the removed HttpServer<T> class from HttpServer.cs
This commit is contained in:
@@ -169,9 +169,9 @@ namespace WebSocketSharp.Net {
|
||||
|
||||
#region Public Method
|
||||
|
||||
public HttpListenerWebSocketContext AcceptWebSocket ()
|
||||
public HttpListenerWebSocketContext AcceptWebSocket (string path)
|
||||
{
|
||||
return new HttpListenerWebSocketContext (this);
|
||||
return new HttpListenerWebSocketContext (path, this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@@ -40,10 +40,10 @@ namespace WebSocketSharp.Net {
|
||||
private HttpListenerContext _context;
|
||||
private WebSocket _socket;
|
||||
|
||||
internal HttpListenerWebSocketContext(HttpListenerContext context)
|
||||
internal HttpListenerWebSocketContext(string path, HttpListenerContext context)
|
||||
{
|
||||
_context = context;
|
||||
_socket = new WebSocket(this);
|
||||
_socket = new WebSocket(path.ToUri(), this);
|
||||
}
|
||||
|
||||
internal HttpListenerContext BaseContext {
|
||||
|
Reference in New Issue
Block a user