I'm doing some expensive work in verifyClient and I'd like to reuse the result in the connection event handler.
I'm currently using the fact that the undocumented WebSocket property upgradeReq is the same request as info.req in verifyClient, and I'm modifying the request. This feels dirty though.
Will you please consider allowing any truthy verifyClient result, and passing it into the connection event handler?
If this seems reasonable, I'd be glad to prepare a pull request.
I'm doing some expensive work in
verifyClientand I'd like to reuse the result in theconnectionevent handler.I'm currently using the fact that the undocumented
WebSocketpropertyupgradeReqis the same request asinfo.reqinverifyClient, and I'm modifying the request. This feels dirty though.Will you please consider allowing any truthy
verifyClientresult, and passing it into theconnectionevent handler?If this seems reasonable, I'd be glad to prepare a pull request.