browser-node-dgram
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i browser-node-dgram

Weekly Downloads

2

Version

1.2.1

License

MIT

Unpacked Size

360 kB

Total Files

19

Last publish

Collaborators

  • gcimato