websocket needs to respect `options.secure` too

A simple change to make secured web socket connections respect `options.secure`. Before, this was throwing `[Error: Hostname/IP doesn't match certificate's altnames]`