emit "connect" event, like net does