Allow socket handler to return messages