Appearance
Home > resol-vbus-core-nodejs > createNetDiscoverEndpoint
createNetDiscoverEndpoint() function
Create a discover endpoint that replies to broadcast queries.
Signature:
typescript
export declare function createNetDiscoverEndpoint(type: dgram.SocketType, options?: CreateNetDiscoverEndpointOptions): Promise<dgram.Socket>;
Parameters
Parameter | Type | Description |
---|---|---|
type | dgram.SocketType | The socket type. |
options | (Optional) Options. |
Promise<dgram.Socket>
The server socket.