Add more function in client side.
add more function in client side, and add new module to handle json msg