related: https://github.com/gorilla/websocket/pull/843 If the pr in gorilla is accepted, we can just add a similar configuration, else we need to change the implementation using `NextReader`.