browser-shim-node-dgram

2019-11-10 admin

browser-shim-node-dgram是什么

什么是browser-shim-node-dgram,A browser shim for node's dgram.

browser-shim-node-dgram使用教程帮助文档

browser-shim-node-dgram

A browser shim for Node’s dgram.

Usage

In ES5:

var dgram = require('browser-shim-node-dgram')

In ES6:

import dgram from 'browser-shim-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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-78905.html

文章标题:browser-shim-node-dgram

回到顶部