Add new function to client and server(draft)

Signed-off-by: Liu Shuo <shuox.liu@gmail.com>