Hooks authentication into sockjs dispatcher transport.