mirror of
https://github.com/snltty/linker.git
synced 2025-10-07 01:52:51 +08:00
21 lines
538 B
C#
21 lines
538 B
C#
using linker.libs.websocket;
|
|
using System;
|
|
|
|
namespace linker.libs.api
|
|
{
|
|
/// <summary>
|
|
/// 前端接口服务
|
|
/// </summary>
|
|
public interface IApiServer
|
|
{
|
|
/// <summary>
|
|
/// websocket
|
|
/// </summary>
|
|
public void Websocket(int port,string password);
|
|
public void Notify(string path, object content);
|
|
public void Notify(string path,string name, ReadOnlyMemory<byte> content);
|
|
public void Notify(string path, object content,WebsocketConnection connection);
|
|
}
|
|
|
|
}
|