Fixes to SockJS