vtortola / WebSocketListener

A lightweight and scalable asynchronous WebSocket listener
http://vtortola.github.io/WebSocketListener
313 stars 85 forks source link

WebSocketHandshaker.ParseWebSocketProtocol throws a NullReferenceException #136

Open slozier opened 6 years ago

slozier commented 6 years ago

This occurs because SubProtocolsSet is null even when SubProtocols is set to something in WebSocketListenerOptions. A workaround is to Clone the options after creating them.

vtortola commented 5 years ago

Thanks! I will take a look