Fixed WebSocketServer
This commit is contained in:
14
Example2/Chat.cs
Normal file
14
Example2/Chat.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using WebSocketSharp;
|
||||
using WebSocketSharp.Server;
|
||||
|
||||
namespace Example2
|
||||
{
|
||||
public class Chat : WebSocketService
|
||||
{
|
||||
protected override void onMessage(object sender, MessageEventArgs e)
|
||||
{
|
||||
Server.Send(e.Data);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user