An open API service indexing awesome lists of open source software.

https://github.com/ultimaweapon/dotnet-websock

Low-level implementation of WebSocket for .NET
https://github.com/ultimaweapon/dotnet-websock

aspnetcore dotnet websocket

Last synced: about 1 year ago
JSON representation

Low-level implementation of WebSocket for .NET

Awesome Lists containing this project

README

          

# Low-level WebSocket implementation for .NET

This is an implementation of WebSocket for .NET. Unlike `System.Net.WebSockets.WebSocket`, this implementation provides a low-level access to WebSocket. The following is a list of problem with `System.Net.WebSockets.WebSocket`:

- No way to receive a frame with arbitrary length because you need to supply a fixed-length buffer when receiving.
- No way to check if the received frame is bigger than the supplied buffer because `WebSocketReceiveResult.Count` will either the size of supplied buffer of the frame size depend on which on is smaller.

## Development

### Prerequisites

- .NET 6 SDK (or later)

### Build

```sh
dotnet build src/WebSock.sln
```

## License

MIT