Yinsh and websocket: add mecanism to detect connection and disconnection