Fixes ENTESB-1976: Protocol detecting gateway does not work with websocket connections