Add OnConnect filter and change heartbeat url to use consistent ?id param