HenningM / express-ws

WebSocket endpoints for express applications
BSD 2-Clause "Simplified" License
878 stars 142 forks source link

Passing options to ws #37

Closed nicholi closed 8 years ago

nicholi commented 8 years ago

Since express-ws is responsible for constructing the ws server, need the ability to pass in the advanced options object to it. Totally optional and doesn't require much change as you can see.

In my case I specifically needed to handle verifyClient in the ws server.

HenningM commented 8 years ago

Hi @Nicholi & thanks for the contribution,

I completely agree that this should be possible and your changes look very good. I might change the version number post-merge, but the rest looks perfect. Thanks again!