fix(socket) error: undefined