Skip to content

Mirror::SimpleWeb::WebSocketServer

Public Functions

Name
WebSocketServer(TcpConfig tcpConfig, int maxMessageSize, int handshakeMaxSize, SslConfig sslConfig, BufferPool bufferPool)
void Listen(int port)
void Stop()
void Send(int id, ArrayBuffer buffer)
bool CloseConnection(int id)
string GetClientAddress(int id)

Public Attributes

Name
readonly ConcurrentQueue< Message > receiveQueue

Public Functions Documentation

function WebSocketServer

inline WebSocketServer(
    TcpConfig tcpConfig,
    int maxMessageSize,
    int handshakeMaxSize,
    SslConfig sslConfig,
    BufferPool bufferPool
)

function Listen

inline void Listen(
    int port
)

function Stop

inline void Stop()

function Send

inline void Send(
    int id,
    ArrayBuffer buffer
)

function CloseConnection

inline bool CloseConnection(
    int id
)

function GetClientAddress

inline string GetClientAddress(
    int id
)

Public Attributes Documentation

variable receiveQueue

readonly ConcurrentQueue< Message > receiveQueue = new ConcurrentQueue<[Message](/Documentation/Cops%20And%20Robbers/Classes/structMirror_1_1SimpleWeb_1_1Message/)>();

Updated on 20 January 2021 at 20:00:04 UTC