Should use sendall instead of send.
Compressing message string when sending and receiving.