连接到服务器时在客户端上调用。
The default implementation of this function sets the client as ready and adds a player.