adapt this to work with SockJS
document sockjs transport option