use wss:// when using https:// (fixes #199)