node-datachannel 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-linux.yml +1 -1
- package/.github/workflows/build-mac.yml +1 -1
- package/.github/workflows/build-win.yml +1 -1
- package/.github/workflows/lint.yml +0 -3
- package/CMakeLists.txt +1 -1
- package/README.md +2 -0
- package/lib/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/peer-connection-wrapper.cpp +5 -1
package/CMakeLists.txt
CHANGED
|
@@ -33,7 +33,7 @@ include(FetchContent)
|
|
|
33
33
|
FetchContent_Declare(
|
|
34
34
|
libdatachannel
|
|
35
35
|
GIT_REPOSITORY https://github.com/paullouisageneau/libdatachannel.git
|
|
36
|
-
GIT_TAG "v0.17.
|
|
36
|
+
GIT_TAG "v0.17.6"
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
option(NO_MEDIA "Disable media transport support in libdatachannel" OFF)
|
package/README.md
CHANGED
|
@@ -104,9 +104,11 @@ export interface RtcConfig {
|
|
|
104
104
|
iceServers: (string | IceServer)[];
|
|
105
105
|
proxyServer?: ProxyServer;
|
|
106
106
|
enableIceTcp?: boolean;
|
|
107
|
+
enableIceUdpMux?: boolean;
|
|
107
108
|
portRangeBegin?: number;
|
|
108
109
|
portRangeEnd?: number;
|
|
109
110
|
maxMessageSize?: number;
|
|
111
|
+
mtu?: number;
|
|
110
112
|
iceTransportPolicy?: TransportPolicy;
|
|
111
113
|
}
|
|
112
114
|
|
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -182,7 +182,11 @@ PeerConnectionWrapper::PeerConnectionWrapper(const Napi::CallbackInfo &info) : N
|
|
|
182
182
|
|
|
183
183
|
// Max Message Size
|
|
184
184
|
if (config.Get("maxMessageSize").IsNumber())
|
|
185
|
-
rtcConfig.maxMessageSize = config.Get("maxMessageSize").As<Napi::Number>().
|
|
185
|
+
rtcConfig.maxMessageSize = config.Get("maxMessageSize").As<Napi::Number>().Int32Value();
|
|
186
|
+
|
|
187
|
+
// MTU
|
|
188
|
+
if (config.Get("mtu").IsNumber())
|
|
189
|
+
rtcConfig.mtu = config.Get("mtu").As<Napi::Number>().Int32Value();
|
|
186
190
|
|
|
187
191
|
// ICE transport policy
|
|
188
192
|
if (!config.Get("iceTransportPolicy").IsUndefined())
|