Asynchronously processes domain information and connects to specified IPs.
Will throw an error if the operation fails.
await getDomains({ domains: ["example1.com", "example2.com"], alt_domains: { "example1.com": "192.168.1.1" }, apiUserName: "user123", apiKey: "apikey123", apiToken: "apitoken123", parameters: { roomRecvIPs: ["192.168.1.10"], consume_sockets: [{ id: "socket1" }], connectIps: async ({ consume_sockets, remIP, parameters, apiUserName, apiKey, apiToken }) => { // Connect IP logic here }, getUpdatedAllParams: () => ({ ...parameters }), },}); Copy
await getDomains({ domains: ["example1.com", "example2.com"], alt_domains: { "example1.com": "192.168.1.1" }, apiUserName: "user123", apiKey: "apikey123", apiToken: "apitoken123", parameters: { roomRecvIPs: ["192.168.1.10"], consume_sockets: [{ id: "socket1" }], connectIps: async ({ consume_sockets, remIP, parameters, apiUserName, apiKey, apiToken }) => { // Connect IP logic here }, getUpdatedAllParams: () => ({ ...parameters }), },});
The options for processing domains and connecting to IPs.
A promise that resolves when the domain processing and IP connection is complete.
Asynchronously processes domain information and connects to specified IPs.
Throws
Will throw an error if the operation fails.
Example