Fix #184 remove need for SockJS global for protocol detection