jchristn / WatsonWebsocket

A simple C# async websocket server and client for reliable transmission and receipt of data
MIT License
277 stars 53 forks source link

Feature request JWT #148

Open at1993 opened 1 month ago

at1993 commented 1 month ago

First of all, thanks @jchristn for this library as I've just ventured into this Websocket stuff. Currently, the server uses IP filtering or let everyone in. it would be nice to let the application authenticate using JWT or some other type of token? In the WatsonWsClient class MessageReadAsync method, the input byte array seems to be not necessary as it is reassigned to a new buffer.