src/packages/EmbedIO/WebSockets/WebSocketModule.cs
/// <summary>
/// Called when this WebSocket server receives a message frame regardless if the frame represents the EndOfMessage.
/// </summary>
/// <param name="context">The context.</param>
/// <param name="buffer">The buffer.</param>
/// <param name="result">The result.</param>
/// <returns>A <see cref="Task"/> representing the ongoing operation.</returns>
Called when this WebSocket server receives a message frame regardless if the frame represents the EndOfMessage.
Called when this WebSocket server receives a message frame regardless if the frame represents the EndOfMessage .
protected virtual Task OnFrameReceivedAsync(
            IWebSocketContext context,
            byte[] buffer,
            IWebSocketReceiveResult result)
            => Task.CompletedTask;
protected virtual Task OnFrameReceivedAsync ( IWebSocketContext context , byte [ ] buffer , IWebSocketReceiveResult result ) => Task . CompletedTask ;
Called when this WebSocket server receives a message frame regardless if the frame represents the EndOfMessage.
Called when this WebSocket server receives a message frame regardless if the frame represents the EndOfMessage .
A  representing the ongoing operation.
A representing the ongoing operation .
context
IWebSocketContext
None
buffer
byte[]
None
result
IWebSocketReceiveResult
None