Fixed WebSocketService
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Example2
|
||||
{
|
||||
protected override void onMessage(object sender, MessageEventArgs e)
|
||||
{
|
||||
Server.Send(e.Data);
|
||||
Publish(e.Data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using WebSocketSharp.Server;
|
||||
|
||||
namespace Example2
|
||||
@@ -13,7 +12,8 @@ namespace Example2
|
||||
|
||||
wssv.Start();
|
||||
Console.WriteLine(
|
||||
"WebSocket Server ({0}) listening on address: {1} port: {2}\n", wssv.Url, wssv.Address, wssv.Port);
|
||||
"WebSocket Server (url: {0})\n listening on address: {1} port: {2}\n",
|
||||
wssv.Url, wssv.Address, wssv.Port);
|
||||
|
||||
Console.WriteLine("Press any key to stop server...");
|
||||
Console.ReadLine();
|
||||
|
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.
Reference in New Issue
Block a user