browser-node-dgram
v1.2.1
Published
A fork of browser shim for node's dgram.
Downloads
74
Readme
browser-shim-node-dgram
A browser shim for Node's dgram
.
Usage
In ES5:
var dgram = require("browser-node-dgram");
In ES6:
import dgram from "browser-node-dgram";
Support
In Chrome, a manifest entry is required for any socket-related functions to work.
createSocket
Supported on all platforms.
Note that these parameters are ignored in Chrome: options.type
or type
, options.reuseAddr
.
Socket#addMembership
Supported on Chrome >= 33.
Socket#address
Supported on all platforms that support Socket#bind.
Socket#bind
Supported on Chrome >= 33. Note that the options.exclusive
parameter is ignored if supplied.
Socket#close
Supported on Chrome >= 33.
Socket#dropMembership
Supported on Chrome >= 33.
Socket#send
Supported on Chrome >= 33.
Socket#setBroadcast
Supported on Chrome >= 44.
Socket#setMulticastLoopback
Supported on Chrome >= 33.
Socket#setMulticastTTL
Supported on Chrome >= 33.
Socket#setTTL
Not supported on any platforms.
Socket#ref
Not supported on any platforms.
Socket#unref
Not supported on any platforms.