fixed connect event not firing client-side, despite shitty documentation