|
|
|
@ -4,10 +4,10 @@ using System.Security.Cryptography.X509Certificates;
|
|
|
|
using WebSocketSharp;
|
|
|
|
using WebSocketSharp;
|
|
|
|
using WebSocketSharp.Server;
|
|
|
|
using WebSocketSharp.Server;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Example2 {
|
|
|
|
namespace Example2
|
|
|
|
|
|
|
|
{
|
|
|
|
public class Program {
|
|
|
|
public class Program
|
|
|
|
|
|
|
|
{
|
|
|
|
public static void Main (string [] args)
|
|
|
|
public static void Main (string [] args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* Single service server
|
|
|
|
/* Single service server
|
|
|
|
@ -53,12 +53,12 @@ namespace Example2 {
|
|
|
|
|
|
|
|
|
|
|
|
wssv.Start ();
|
|
|
|
wssv.Start ();
|
|
|
|
Console.WriteLine (
|
|
|
|
Console.WriteLine (
|
|
|
|
"WebSocket Server listening on port: {0} service path:", wssv.Port);
|
|
|
|
"A WebSocket Server listening on port: {0} service path:", wssv.Port);
|
|
|
|
foreach (var path in wssv.ServicePaths)
|
|
|
|
foreach (var path in wssv.WebSocketServices.ServicePaths)
|
|
|
|
Console.WriteLine (" {0}", path);
|
|
|
|
Console.WriteLine (" {0}", path);
|
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine ();
|
|
|
|
Console.WriteLine ();
|
|
|
|
Console.WriteLine ("Press enter key to stop server...");
|
|
|
|
Console.WriteLine ("Press Enter key to stop server...");
|
|
|
|
Console.ReadLine ();
|
|
|
|
Console.ReadLine ();
|
|
|
|
|
|
|
|
|
|
|
|
wssv.Stop ();
|
|
|
|
wssv.Stop ();
|
|
|
|
|