IWebReceiver
La référence est en anglais : elle est générée à partir des commentaires du code, écrits en anglais.
csharp
public interface IWebReceiverNamespace Flux.
What the host tells about a request or a socket (on the scripts' thread).
Methods
OnResponse
csharp
void OnResponse(int statusCode, string head, byte[] body)The answer: status, then head = version '\n' reason '\n' a "Name: value" line per header; the body.
OnFailed
csharp
void OnFailed(int error, string message)The request or the socket failed: error as HttpRequestError (request) or WebSocketError (socket).
OnSocketOpened
csharp
void OnSocketOpened(string head)The socket is open: head = the chosen subprotocol ("" none) '\n' a "Name: value" line per header of the answer.
OnSocketMessage
csharp
void OnSocketMessage(int messageType, bool endOfMessage, byte[] data)A message, or a piece of one, came (0 text, 1 binary).
OnSocketClosed
csharp
void OnSocketClosed(int status, string description)The socket closed (status -1: none).
