Added MG_WS_CONNECT