gobwas / ws

Tiny WebSocket library for Go.
MIT License
6.1k stars 373 forks source link

Correct way to handle continuation frame? #182

Open om26er opened 1 year ago

om26er commented 1 year ago

When using wsutil.NextReader(), whats the proper way to handle a continuation frame? Can you point me to an example on how one may deal with that. Should the application code check for fin and continue to write data into a buffer till fin is true?

trungdlp-wolffun commented 2 months ago

https://github.com/lesismal/go-websocket-benchmark/issues/42#issuecomment-2059540670