Change lever event to transition and fix socketReconnect bug