17 lines
401 B
C#
17 lines
401 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Fleck
|
|
{
|
|
public interface IHandler
|
|
{
|
|
byte[] CreateHandshake(string subProtocol = null);
|
|
void Receive(IEnumerable<byte> data);
|
|
byte[] FrameText(string text);
|
|
byte[] FrameBinary(byte[] bytes);
|
|
byte[] FramePing(byte[] bytes);
|
|
byte[] FramePong(byte[] bytes);
|
|
byte[] FrameClose(int code);
|
|
}
|
|
}
|
|
|