Fixes ENTESB-1976: Protocol detecting gateway does not work with websock...

...et connections