node library

Node.js host bindings for easy_onvif.

Only importable in code compiled for Node.js (dart compile js); the bindings rely on globalThis.require and dart:js_interop, neither of which exists on the Dart VM. Used by the easy-onvif-node and easy-onvif-mcp npm artifacts.

Classes

NodeFetchAdapter
A Dio HttpClientAdapter that delegates HTTP requests to Node.js's built-in globalThis.fetch via dart:js_interop.
NodeMulticastProbe
Node.js-native WS-Discovery probe.

Extension Types

DgramAddress
The object returned by dgram.Socket.address().
DgramSocket
Thin wrapper around Node's dgram.Socket.
RemoteInfo
The rinfo object passed to the 'message' event listener.

Properties

jsGlobal → JSObject
Low-level bindings to the JavaScript global scope.
no setter

Functions

createUdp4Socket() → DgramSocket
Creates a udp4 datagram socket.
isNodeRuntime() → bool
Returns true when the executing JS host is Node.js.
nodeRequire(String moduleId) → JSObject
Loads a CommonJS module from Node.js.
sendDatagram(DgramSocket socket, Uint8List bytes, String address, int port) → void
Sends bytes as a single UDP datagram to address:port.