added single line getMessage to TCP server