Fixed a few typo
This commit is contained in:
@@ -34,8 +34,8 @@ namespace WebSocketSharp.Server
|
||||
public interface IWebSocketServer
|
||||
{
|
||||
void AddService(WebSocketService service);
|
||||
void Close();
|
||||
void Close(CloseStatusCode code, string reason);
|
||||
void CloseService();
|
||||
void CloseService(CloseStatusCode code, string reason);
|
||||
void Ping(string data);
|
||||
void RemoveService(WebSocketService service);
|
||||
void Send(byte[] data);
|
||||
|
@@ -173,12 +173,12 @@ namespace WebSocketSharp.Server
|
||||
_services.Add(service);
|
||||
}
|
||||
|
||||
public void Close()
|
||||
public void CloseService()
|
||||
{
|
||||
Close(CloseStatusCode.NORMAL, String.Empty);
|
||||
CloseService(CloseStatusCode.NORMAL, String.Empty);
|
||||
}
|
||||
|
||||
public void Close(CloseStatusCode code, string reason)
|
||||
public void CloseService(CloseStatusCode code, string reason)
|
||||
{
|
||||
lock (_services.SyncRoot)
|
||||
{
|
||||
@@ -248,7 +248,7 @@ namespace WebSocketSharp.Server
|
||||
public void Stop()
|
||||
{
|
||||
_tcpListener.Stop();
|
||||
Close();
|
||||
CloseService();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user