17 lines
682 B
C#
17 lines
682 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
|
|
namespace bts.websocket_core {
|
|
// This does all the bookkeeping for conenctions and data, and passes
|
|
// it over to the business layer
|
|
public interface IWebsocketDataSync {
|
|
// Called when a new client is connected
|
|
public void handle_connection(WebsocketClientID client_id,
|
|
WebsocketIncomingMessage? optional_message);
|
|
// Called when a client is disconnected
|
|
public void handle_disconnection(WebsocketClientID client_id);
|
|
// Called when a client sends data
|
|
public void handle_client_message(WebsocketIncomingMessage message);
|
|
}
|
|
} |