BAP-4198: SaaS https issue

- add possibility to run socket under wss protocol when header X-Forwarded-Proto is passed