Working as chat server