fixed wrong definition of sockjs connection constants

The defintion of SockJS connection constants was at the wrong place and led to wrong usage of them:
The sockjs instance has no OPEN, CLOSING, CONNECTING OR CLOSED variables. Instead the static SockJS.OPEN needs to be used.