Skip to content

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

CreateNetDiscoverEndpointOptions

(Optional) Options.

**Returns:**

Promise<dgram.Socket>

The server socket.