Fixing bug when passing TLS options to the websocket client.  Fixes #146 and closes #147