socket: fixed @api tag on pipe