from syft.core.node.domain.domain import Domain

node = Domain(name="om-domain")

@@ -1,8 +1,50 @@
+from syft.grid.grid_client import connect%0A
 from syf
@@ -87,37 +87,702 @@
 ain%0A
-%0Anode = Domain(name=%22om-domain%22)
+from syft.core.node.device.client import DeviceClient%0Afrom syft.grid.connections.http_connection import HTTPConnection%0Afrom syft.grid.services.worker_management_service import CreateWorkerService%0A%0Anode = Domain(name=%22om-domain%22)%0Anode.immediate_services_with_reply.append(CreateWorkerService)%0Anode._register_services()  # re-register all services including SignalingService%0A%0Atry:%0A    node.private_device = connect(%0A        url=%22http://localhost:5000%22,  # Domain Address%0A        conn_type=HTTPConnection,  # HTTP Connection Protocol%0A        client_type=DeviceClient,%0A    )  # Device Client type%0A    node.in_memory_client_registry%5Bnode.private_device.device_id%5D = node.private_device%0Aexcept:%0A    pass
 %0A

ADD a new worker connection