add publish_socket