fixed sockjs implementation, need to test it with protocol