Fixed a few typo
This commit is contained in:
parent
b730e23248
commit
42461dfc52
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12
README.md
12
README.md
@ -122,7 +122,7 @@ Type of `code` is `WebSocketSharp.Frame.CloseStatusCode`, type of `reason` is `s
|
||||
|
||||
#### Step 1 ####
|
||||
|
||||
Required namespaces.
|
||||
Required namespace.
|
||||
|
||||
using WebSocketSharp.Server;
|
||||
|
||||
@ -130,10 +130,11 @@ Required namespaces.
|
||||
|
||||
#### Step 2 ####
|
||||
|
||||
Creating a class that inherits from `WebSocketService`.
|
||||
Creating a class that inherits `WebSocketService`.
|
||||
|
||||
For example, if you want to provide the echo service,
|
||||
|
||||
using System;
|
||||
using WebSocketSharp;
|
||||
using WebSocketSharp.Server;
|
||||
|
||||
@ -147,6 +148,7 @@ For example, if you want to provide the echo service,
|
||||
|
||||
For example, if you want to provide the chat service,
|
||||
|
||||
using System;
|
||||
using WebSocketSharp;
|
||||
using WebSocketSharp.Server;
|
||||
|
||||
@ -164,7 +166,7 @@ Creating instance of `WebSocketServer<T>` class.
|
||||
|
||||
var wssv = new WebSocketServer<Echo>("ws://example.com:4649");
|
||||
|
||||
Type of `T` inherits from `WebSocketService` class, so you can use a class that was created in **Step 2**.
|
||||
Type of `T` inherits `WebSocketService` class, so you can use a class that was created in **Step 2**.
|
||||
|
||||
If you set WebSocket url without port number, `WebSocketServer<T>` set 80 or 443 to port number automatically.
|
||||
So it is necessary to run with root permission.
|
||||
@ -175,9 +177,9 @@ So it is necessary to run with root permission.
|
||||
|
||||
Setting WebSocketServer event handler.
|
||||
|
||||
##### WebSocketServer.OnError event #####
|
||||
##### WebSocketServer<T>.OnError event #####
|
||||
|
||||
`WebSocketServer.OnError` event is emitted when some error is occurred.
|
||||
`WebSocketServer<T>.OnError` event is emitted when some error is occurred.
|
||||
|
||||
wssv.OnError += (sender, e) =>
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
<Properties>
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Release_Ubuntu" />
|
||||
<MonoDevelop.Ide.Workbench />
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<BreakpointStore />
|
||||
|
@ -5,7 +5,7 @@ using System.Runtime.CompilerServices;
|
||||
// Change them to the values specific to your project.
|
||||
|
||||
[assembly: AssemblyTitle("websocket-sharp")]
|
||||
[assembly: AssemblyDescription("A C# implementation of a WebSocket protocol client")]
|
||||
[assembly: AssemblyDescription("A C# implementation of WebSocket protocol client & server")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("websocket-sharp.dll")]
|
||||
@ -17,7 +17,7 @@ using System.Runtime.CompilerServices;
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.1.*")]
|
||||
[assembly: AssemblyVersion("1.0.2.*")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
@ -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
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user