Fix a few
This commit is contained in:
parent
d98b041c1e
commit
515cf0cfcf
@ -45,7 +45,9 @@ namespace Example3
|
||||
|
||||
_httpsv.AddWebSocketService<Echo> ("/Echo");
|
||||
_httpsv.AddWebSocketService<Chat> ("/Chat");
|
||||
//_httpsv.AddWebSocketService<Chat> ("/Chat", () => new Chat ("Anon#"));
|
||||
//_httpsv.AddWebSocketService<Chat> (
|
||||
// "/Chat",
|
||||
// () => new Chat ("Anon#") { Protocol = "chat" });
|
||||
|
||||
_httpsv.Start ();
|
||||
if (_httpsv.IsListening) {
|
||||
|
@ -32,7 +32,7 @@ using WebSocketSharp.Net.WebSockets;
|
||||
namespace WebSocketSharp.Server
|
||||
{
|
||||
/// <summary>
|
||||
/// Exposes the access to the session to the WebSocket service.
|
||||
/// Exposes the access to the session information in the WebSocket service.
|
||||
/// </summary>
|
||||
public interface IWebSocketSession
|
||||
{
|
||||
@ -41,7 +41,7 @@ namespace WebSocketSharp.Server
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// A <see cref="WebSocketContext"/> that represents the WebSocket connection
|
||||
/// request.
|
||||
/// request information.
|
||||
/// </value>
|
||||
WebSocketContext Context { get; }
|
||||
|
||||
@ -54,11 +54,19 @@ namespace WebSocketSharp.Server
|
||||
string ID { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the time that the session has been started.
|
||||
/// Gets the subprotocol used on the WebSocket connection.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// A <see cref="string"/> that represents the subprotocol if any.
|
||||
/// </value>
|
||||
string Protocol { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the time that the session has started.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// A <see cref="DateTime"/> that represents the time that the session has
|
||||
/// been started.
|
||||
/// started.
|
||||
/// </value>
|
||||
DateTime StartTime { get; }
|
||||
|
||||
@ -66,7 +74,7 @@ namespace WebSocketSharp.Server
|
||||
/// Gets the state of the WebSocket connection.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// One of the <see cref="WebSocketState"/> values that indicate the state of
|
||||
/// One of the <see cref="WebSocketState"/> enum values, indicates the state of
|
||||
/// the WebSocket connection.
|
||||
/// </value>
|
||||
WebSocketState State { get; }
|
||||
|
Loading…
Reference in New Issue
Block a user