deprecated: CONNECTION event, logout callback; added: LOGIN_SUCCESS, LOGIN_ERROR, LOGOUT_SUCCESS, LOGOUT_ERROR, CONN_SUCCESS (replacement for CONNECTION);