Defining a constant in a variable is wrong and trigger on error on mobile. Small fix to make websocket work on mobile