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
- Host: GitHub
- URL: https://github.com/ultimaweapon/dotnet-websock
- Owner: ultimaweapon
- License: mit
- Created: 2023-03-20T07:28:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-29T05:02:32.000Z (about 3 years ago)
- Last Synced: 2025-02-09T05:39:12.137Z (over 1 year ago)
- Topics: aspnetcore, dotnet, websocket
- Language: C#
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
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