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
HttpClientAdapterthat delegates HTTP requests to Node.js's built-inglobalThis.fetchviadart: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
rinfoobject passed to the'message'event listener.
Functions
-
createUdp4Socket(
) → DgramSocket -
Creates a
udp4datagram socket. -
isNodeRuntime(
) → bool -
Returns
truewhen 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
bytesas a single UDP datagram toaddress:port.