finish  chat function.
Merge branch 'readPeersWhenConnecting' into development