fix sockjs bridge hook

setHook doesn't seem to work if set after creating the bridge. 

I have signed the Eclipse CLA.