Added ping message to client side; now both server side and client side can ping.