Chat server for multiple ports and multiple clients with chunking on long messages