Fix messages in socket.cpp