Some data channel messages seem to cause werift to "throw new Error();" at this line: https://github.com/shinyoshiaki/werift-webrtc/blob/develop/packages/webrtc/src/transport/sctp.ts#L94
Here is the full log:
/Users/me/.nvm/versions/node/v16.13.1/bin/node /Users/me/Source/webrtctest/dist/index.js
werift/webrtc/utils iceOptions {
stunServer: [ 'stun.l.google.com', 19302 ],
turnServer: undefined,
turnUsername: undefined,
turnPassword: undefined
} +0ms
werift:packages/webrtc/src/peerConnection.ts iceGatheringStateChange new +0ms
werift:packages/webrtc/src/peerConnection.ts iceConnectionStateChange new +1ms
werift:packages/webrtc/src/peerConnection.ts signalingStateChange have-local-offer +52ms
werift:packages/webrtc/src/peerConnection.ts iceGatheringStateChange gathering +1ms
v=0
o=- 17858619 0 IN IP4 0.0.0.0
s=-
t=0 0
a=group:BUNDLE 0 1 2
a=extmap-allow-mixed
a=msid-semantic:WMS *
m=audio 9 UDP/TLS/RTP/SAVPF 96
c=IN IP4 0.0.0.0
a=ice-ufrag:7441
a=ice-pwd:5458ef9e20f8f7e44bfd4d
a=ice-options:trickle
a=fingerprint:sha-256 D8:DB:13:39:07:F5:20:8C:A2:A1:DD:24:F6:F2:44:7A:ED:13:C4:CB:37:E9:27:91:C3:44:99:A4:EE:11:DA:F2
a=setup:actpass
a=recvonly
a=mid:0
a=msid:01f3f107-8a92-4727-bf6e-f16d113e1074 78c4643f-a66b-4d3b-b692-fa0996e1b0f4
a=rtcp:9 IN IP4 0.0.0.0
a=rtcp-mux
a=ssrc:769720978 cname:11ee087f-4ce9-481d-bde6-674cb159939c
a=rtpmap:96 opus/48000/2
m=video 9 UDP/TLS/RTP/SAVPF 97
c=IN IP4 0.0.0.0
a=ice-ufrag:7441
a=ice-pwd:5458ef9e20f8f7e44bfd4d
a=ice-options:trickle
a=fingerprint:sha-256 D8:DB:13:39:07:F5:20:8C:A2:A1:DD:24:F6:F2:44:7A:ED:13:C4:CB:37:E9:27:91:C3:44:99:A4:EE:11:DA:F2
a=setup:actpass
a=recvonly
a=mid:1
a=msid:55a23c31-fb42-447d-ad77-38780e198f14 874c4544-0316-45a0-974d-54dd46d0de4d
a=rtcp:9 IN IP4 0.0.0.0
a=rtcp-mux
a=ssrc:2374351791 cname:11ee087f-4ce9-481d-bde6-674cb159939c
a=rtpmap:97 H264/90000
a=rtcp-fb:97 transport-cc
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 goog-remb
a=fmtp:97 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c1f
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 0.0.0.0
a=ice-ufrag:7441
a=ice-pwd:5458ef9e20f8f7e44bfd4d
a=ice-options:trickle
a=fingerprint:sha-256 D8:DB:13:39:07:F5:20:8C:A2:A1:DD:24:F6:F2:44:7A:ED:13:C4:CB:37:E9:27:91:C3:44:99:A4:EE:11:DA:F2
a=setup:actpass
a=mid:2
a=sctp-port:5000
a=max-message-size:65536
v=0
o=- 0 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 2 1
a=msid-semantic: WMS 12472791870915183646/3212739396 virtual-6666
a=ice-lite
m=audio 19305 UDP/TLS/RTP/SAVPF 96
c=IN IP4
a=rtcp:9 IN IP4 0.0.0.0
a=candidate: 1 udp 2113939711 2607:f8b0:400e:c0a::7f 19305 typ host generation 0
a=candidate: 1 tcp 2113939710 2607:f8b0:400e:c0a::7f 19305 typ host tcptype passive generation 0
a=candidate: 1 ssltcp 2113939709 2607:f8b0:400e:c0a::7f 443 typ host generation 0
a=candidate: 1 udp 2113932031 172.253.117.127 19305 typ host generation 0
a=candidate: 1 tcp 2113932030 172.253.117.127 19305 typ host tcptype passive generation 0
a=candidate: 1 ssltcp 2113932029 172.253.117.127 443 typ host generation 0
a=ice-ufrag:QNI9WYYGY3SUVKFU
a=ice-pwd:QFMXR+WUA1NJBL/EJGJCXA00
a=fingerprint:sha-256 A9:FC:30:FE:52:00:89:D2:F1:B1:C3:87:85:A6:7F:28:2E:85:65:2A:9B:EF:9E:D9:42:AD:02:22:E0:C3:32:CC
a=setup:passive
a=mid:0
a=sendrecv
a=msid:virtual-6666 virtual-6666
a=rtcp-mux
a=rtpmap:96 opus/48000/2
a=fmtp:96 minptime=10;useinbandfec=1
a=ssrc:6666 cname:6666
m=video 9 UDP/TLS/RTP/SAVPF 97
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:QNI9WYYGY3SUVKFU
a=ice-pwd:QFMXR+WUA1NJBL/EJGJCXA00
a=fingerprint:sha-256 A9:FC:30:FE:52:00:89:D2:F1:B1:C3:87:85:A6:7F:28:2E:85:65:2A:9B:EF:9E:D9:42:AD:02:22:E0:C3:32:CC
a=setup:passive
a=mid:1
a=sendrecv
a=msid:12472791870915183646/3212739396 12472791870915183646/3212739396
a=rtcp-mux
a=rtpmap:97 H264/90000
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 goog-remb
a=fmtp:97 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c1f
a=ssrc:3212739396 cname:3212739396
m=application 9 DTLS/SCTP 5000
c=IN IP4 0.0.0.0
a=ice-ufrag:QNI9WYYGY3SUVKFU
a=ice-pwd:QFMXR+WUA1NJBL/EJGJCXA00
a=fingerprint:sha-256 A9:FC:30:FE:52:00:89:D2:F1:B1:C3:87:85:A6:7F:28:2E:85:65:2A:9B:EF:9E:D9:42:AD:02:22:E0:C3:32:CC
a=setup:passive
a=mid:2
a=sctpmap:5000 webrtc-datachannel 1024
werift:packages/webrtc/src/peerConnection.ts negotiated codecs [
RTCRtpCodecParameters {
rtcpFeedback: [],
mimeType: 'audio/opus',
channels: 2,
clockRate: 48000,
payloadType: 96,
parameters: 'minptime=10;useinbandfec=1'
}
] +1s
werift:packages/webrtc/src/media/router.ts registerRtpReceiverBySsrc {
muxId: '0',
rtcp: undefined,
codecs: [
RTCRtpCodecParameters {
rtcpFeedback: [],
mimeType: 'audio/opus',
channels: 2,
clockRate: 48000,
payloadType: 96,
parameters: 'minptime=10;useinbandfec=1'
}
],
headerExtensions: [],
encodings: [ RTCRtpCodingParameters { ssrc: 6666, payloadType: 96 } ]
} +0ms
werift:packages/webrtc/src/media/rtpSender.ts replaceTrack ssrc 6666 rid undefined +0ms
werift:packages/webrtc/src/media/rtpReceiver.ts twcc support false +0ms
werift:packages/webrtc/src/peerConnection.ts negotiated codecs [
RTCRtpCodecParameters {
rtcpFeedback: [
[RTCRtcpFeedback],
[RTCRtcpFeedback],
[RTCRtcpFeedback],
[RTCRtcpFeedback]
],
mimeType: 'video/H264',
channels: undefined,
clockRate: 90000,
payloadType: 97,
parameters: 'level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c1f'
}
] +4ms
werift:packages/webrtc/src/media/router.ts registerRtpReceiverBySsrc {
muxId: '1',
rtcp: undefined,
codecs: [
RTCRtpCodecParameters {
rtcpFeedback: [Array],
mimeType: 'video/H264',
channels: undefined,
clockRate: 90000,
payloadType: 97,
parameters: 'level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c1f'
}
],
headerExtensions: [],
encodings: [ RTCRtpCodingParameters { ssrc: 3212739396, payloadType: 97 } ]
} +4ms
werift:packages/webrtc/src/media/rtpSender.ts replaceTrack ssrc 3212739396 rid undefined +5ms
werift:packages/webrtc/src/media/rtpReceiver.ts twcc support false +4ms
werift:packages/webrtc/src/peerConnection.ts connectionStateChange connecting +3ms
werift:packages/webrtc/src/peerConnection.ts iceConnectionStateChange checking +0ms
werift-ice : packages/ice/src/ice.ts : log start connect ice +0ms
werift-ice : packages/ice/src/ice.ts : log check start Candidate {
foundation: '',
component: 1,
transport: 'udp',
priority: 2113932031,
host: '172.253.117.127',
port: 19305,
type: 'host',
relatedAddress: undefined,
relatedPort: undefined,
tcptype: undefined,
generation: undefined
} +1ms
werift:packages/webrtc/src/peerConnection.ts signalingStateChange stable +5ms
answer applied
werift-ice : packages/ice/src/ice.ts : log check start Candidate {
foundation: '',
component: 1,
transport: 'udp',
priority: 2113939711,
host: '2607:f8b0:400e:c0a::7f',
port: 19305,
type: 'host',
relatedAddress: undefined,
relatedPort: undefined,
tcptype: undefined,
generation: undefined
} +25ms
werift-ice:packages/ice/src/transport.ts send error [ '2607:f8b0:400e:c0a::7f', 19305 ] <Buffer 00 01 00 50 21 12 a4 42 ed 6a 91 31 db 2c 37 e8 b9 05 42 ac 00 06 00 15 51 4e 49 39 57 59 59 47 59 33 53 55 56 4b 46 55 3a 37 34 34 31 00 00 00 00 24 ... 50 more bytes> +0ms
werift-ice : packages/ice/src/ice.ts : log response Message {
messageMethod: 1,
messageClass: 256,
transactionId: <Buffer 18 8f 86 23 f6 ba 55 f7 fc e7 fa ee>,
attributes: {
USERNAME: 'QNI9WYYGY3SUVKFU:7441',
'XOR-MAPPED-ADDRESS': [ '65.35.254.126', 51908 ],
'MESSAGE-INTEGRITY': <Buffer 93 63 9d af 89 87 17 a8 79 d6 42 68 12 fb e5 38 52 ca 8b 7a>,
FINGERPRINT: 3911387794
}
} [ '172.253.117.127', 19305 ] +68ms
werift-ice:packages/ice/src/transport.ts send error [ '2607:f8b0:400e:c0a::7f', 19305 ] <Buffer 00 01 00 50 21 12 a4 42 ed 6a 91 31 db 2c 37 e8 b9 05 42 ac 00 06 00 15 51 4e 49 39 57 59 59 47 59 33 53 55 56 4b 46 55 3a 37 34 34 31 00 00 00 00 24 ... 50 more bytes> +100ms
werift-ice : packages/ice/src/ice.ts : log ICE completed +86ms
werift:packages/webrtc/src/peerConnection.ts iceConnectionStateChange connected +190ms
werift:packages/webrtc/src/peerConnection.ts ice connected +1ms
werift-dtls : packages/dtls/src/socket.ts : log support srtpProfiles [ 7, 1 ] +0ms
werift-dtls : packages/dtls/src/client.ts : log start client +0ms
werift-ice:packages/ice/src/transport.ts send error [ '2607:f8b0:400e:c0a::7f', 19305 ] <Buffer 00 01 00 50 21 12 a4 42 ed 6a 91 31 db 2c 37 e8 b9 05 42 ac 00 06 00 15 51 4e 49 39 57 59 59 47 59 33 53 55 56 4b 46 55 3a 37 34 34 31 00 00 00 00 24 ... 50 more bytes> +202ms
werift-dtls : packages/dtls/src/client.ts : log handleHandshakes [ 2 ] +195ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log serverHello 49199 +0ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log selected cipherSuite 49199 +1ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log RenegotiationIndication +0ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log selected srtp profile 1 +0ms
werift-dtls : packages/dtls/src/client.ts : log handleHandshakes [ 11 ] +3ms
werift-dtls : packages/dtls/src/client.ts : log handleHandshakes [ 12 ] +0ms
werift-dtls : packages/dtls/src/client.ts : log handleHandshakes [] +1ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log handshake certificate Certificate {
certificateList: [
<Buffer 30 82 02 ff 30 82 01 e7 a0 03 02 01 02 02 08 62 ca 1e 6c 00 5c 08 64 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 13 31 11 30 0f 06 03 55 04 03 13 ... 721 more bytes>
],
msgType: 11
} +2ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log ServerKeyExchange ServerKeyExchange {
ellipticCurveType: 3,
namedCurve: 29,
publicKeyLength: 32,
publicKey: <Buffer 36 bf 07 89 38 bd 9b 29 e4 ac f9 64 64 8a 65 5c 5d a8 68 c7 14 93 e8 f1 86 f1 c7 a6 25 bf 3b 24>,
hashAlgorithm: 4,
signatureAlgorithm: 1,
signatureLength: 256,
signature: <Buffer bd 36 ff 3a 8f 4f a0 30 8a 41 fa 9f 4f 88 bc 90 33 70 9d 63 de b4 31 8e 74 f7 ba 88 01 85 03 d4 55 ba d1 fd 00 dc e1 a4 5a 70 1b b5 97 eb 0a 41 14 d0 ... 206 more bytes>,
msgType: 12
} +1ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log selected curve 29 +1ms
werift-dtls : packages/dtls/src/client.ts : log handleHandshakes [ 13 ] +27ms
werift-dtls : packages/dtls/src/client.ts : log handleHandshakes [ 14 ] +1ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log certificate_request ServerCertificateRequest {
certificateTypes: [ 1, 64 ],
signatures: [
[Object: null prototype] { hash: 4, signature: 3 },
[Object: null prototype] { hash: 8, signature: 4 },
[Object: null prototype] { hash: 4, signature: 1 },
[Object: null prototype] { hash: 5, signature: 3 },
[Object: null prototype] { hash: 8, signature: 5 },
[Object: null prototype] { hash: 5, signature: 1 },
[Object: null prototype] { hash: 8, signature: 6 },
[Object: null prototype] { hash: 6, signature: 1 },
[Object: null prototype] { hash: 2, signature: 1 }
],
authorities: [],
msgType: 13
} +27ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log server_hello_done ServerHelloDone { msgType: 14 } +2ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log send flight5 true +1ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log extendedMasterSecret true true +4ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log cipher {
id: 49199,
verifyDataLength: 12,
keyLength: 16,
nonceLength: 12,
ivLength: 4,
authTagLength: 16,
nonceImplicitLength: 4,
nonceExplicitLength: 8,
name: 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256',
blockAlgorithm: 'aes-128-gcm',
hashAlgorithm: 'sha256',
clientWriteKey: '0x8b,0x3d,0x81,0x37,0xc4,0x51,0x45,0x59,0xb0,0x00,0x4e,0x82,0x98,0x7c,0x6b,0xc8',
serverWriteKey: '0x36,0x6d,0xb5,0xab,0x45,0xfd,0x98,0xba,0xc7,0x95,0x80,0xea,0x83,0x37,0xc0,0x16',
clientNonce: '0x2d,0x44,0xa0,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00',
serverNonce: '0x3a,0x3f,0xf4,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00'
} +3ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log signatureScheme 3 1027 +2ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log raw finish packet {
header: {
contentType: 22,
protocolVersion: { major: 254, minor: 253 },
epoch: 1,
sequenceNumber: 6,
contentLen: 24
},
fragment: '0x14,0x00,0x00,0x0c,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x0c,0xcd,0xc6,0x28,0xfe,0xeb,0x94,0xb1,0xe4,0x9e,0x56,0x0f,0x3a'
} [
{
msg_type: 1,
length: 86,
message_seq: 0,
fragment_offset: 0,
fragment_length: 86,
fragment: '0xfe,0xfd,0x61,0xca,0x35,0x9e,0x04,0x36,0x97,0x21,0x9c,0x8d,0xa0,0xab,0x57,0xa2,0x30,0x28,0x0a,0xb0,0x91,0x7f,0x11,0x56,0xc7,0xad,0x7d,0x73,0x98,0x30,0xf9,0xfc,0x19,0x69,0x00,0x00,0x00,0x04,0xc0,0x2b,0xc0,0x2f,0x01,0x00,0x00,0x28,0x00,0x0e,0x00,0x07,0x00,0x04,0x00,0x07,0x00,0x01,0x00,0x00,0x0a,0x00,0x06,0x00,0x04,0x00,0x1d,0x00,0x17,0x00,0x0d,0x00,0x06,0x00,0x04,0x04,0x01,0x04,0x03,0x00,0x17,0x00,0x00,0xff,0x01,0x00,0x01,0x00'
},
{
msg_type: 2,
length: 90,
message_seq: 0,
fragment_offset: 0,
fragment_length: 90,
fragment: '0xfe,0xfd,0x61,0xca,0x35,0x9e,0xba,0x0e,0x91,0x93,0xa2,0x5f,0x7a,0x14,0xbd,0x67,0x2e,0xc8,0x90,0x1f,0x78,0x29,0x08,0x8c,0x1b,0x51,0x58,0x05,0xc9,0xe2,0x56,0x9d,0x8c,0xcd,0x20,0x92,0x9b,0xc2,0x59,0x88,0x3a,0xfc,0x5a,0x89,0x41,0x4e,0xc7,0x79,0x8a,0xc2,0xc0,0x53,0xbd,0x79,0x64,0x3e,0x24,0xd4,0xb2,0xd9,0x05,0x30,0x25,0x77,0x1e,0x90,0x57,0xc0,0x2f,0x00,0x00,0x12,0x00,0x17,0x00,0x00,0xff,0x01,0x00,0x01,0x00,0x00,0x0e,0x00,0x05,0x00,0x02,0x00,0x01,0x00'
},
{
msg_type: 11,
length: 777,
message_seq: 1,
fragment_offset: 0,
fragment_length: 777,
fragment: '0x00,0x03,0x06,0x00,0x03,0x03,0x30,0x82,0x02,0xff,0x30,0x82,0x01,0xe7,0xa0,0x03,0x02,0x01,0x02,0x02,0x08,0x62,0xca,0x1e,0x6c,0x00,0x5c,0x08,0x64,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,0x05,0x00,0x30,0x13,0x31,0x11,0x30,0x0f,0x06,0x03,0x55,0x04,0x03,0x13,0x08,0x68,0x61,0x6e,0x67,0x6f,0x75,0x74,0x73,0x30,0x1e,0x17,0x0d,0x32,0x31,0x31,0x32,0x32,0x32,0x30,0x39,0x30,0x31,0x35,0x36,0x5a,0x17,0x0d,0x32,0x32,0x31,0x32,0x32,0x33,0x30,0x39,0x30,0x31,0x35,0x36,0x5a,0x30,0x13,0x31,0x11,0x30,0x0f,0x06,0x03,0x55,0x04,0x03,0x13,0x08,0x68,0x61,0x6e,0x67,0x6f,0x75,0x74,0x73,0x30,0x82,0x01,0x22,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x01,0x05,0x00,0x03,0x82,0x01,0x0f,0x00,0x30,0x82,0x01,0x0a,0x02,0x82,0x01,0x01,0x00,0xc5,0x63,0x91,0x6b,0x10,0xfc,0xc5,0xd1,0x02,0x45,0x47,0x3d,0x26,0x55,0xc0,0x8d,0x57,0xd3,0x3d,0x38,0x09,0x37,0x81,0x09,0x2b,0xfd,0x4b,0xf1,0x30,0x84,0x79,0xbd,0xd5,0xbf,0xa3,0x9e,0x11,0xee,0xff,0x29,0xc0,0x35,0x24,0xd9,0x18,0x5c,0x3b,0xa8,0xec,0xe5,0xd9,0x49,0xa0,0x72,0x01,0x3f,0x43,0x8a,0x00,0xc8,0x9e,0x37,0xe5,0xb9,0xd0,0xaf,0x8d,0xdf,0x10,0xba,0xcb,0x56,0x78,0x71,0x23,0x16,0xfc,0x48,0x45,0x67,0x84,0x7e,0x1a,0x7c,0x24,0x26,0xa0,0x1e,0x85,0x1f,0x95,0xe7,0x77,0xd4,0x33,0x04,0xbc,0x09,0x8f,0x58,0x8d,0x5f,0xfb,0xca,0x23,0x32,0x28,0x53,0xa7,0x1b,0x66,0x93,0x20,0xdd,0xc6,0xfc,0x2c,0x6c,0xb8,0x49,0xb2,0xe2,0x85,0x57,0x78,0x03,0xe2,0x01,0x62,0xd8,0xef,0xc8,0x19,0x21,0x47,0x59,0xf6,0xe6,0x92,0x73,0x5c,0x9c,0x06,0x50,0x8f,0xaf,0xb3,0x26,0x54,0xb7,0xf7,0x18,0x4b,0xef,0x25,0xb9,0x61,0x62,0x4f,0xa7,0xea,0x93,0x20,0xd3,0xb0,0xb3,0xd4,0xef,0x1c,0xec,0xf3,0xf1,0x25,0x5f,0xe8,0xd1,0xb0,0xc2,0xfe,0x96,0xe2,0xc3,0xa4,0xa0,0x02,0x2b,0x5c,0x98,0x05,0xa4,0x4a,0x89,0x56,0x1f,0x3b,0x7d,0x40,0xd4,0x26,0x2d,0x0d,0xef,0xed,0xdb,0x79,0x12,0x42,0x48,0xd0,0x00,0x9e,0xa4,0x22,0x76,0xfd,0xa6,0xea,0x35,0x28,0x20,0x5f,0xef,0x04,0xfc,0xaa,0x20,0xb4,0x80,0x3b,0xc4,0xdc,0x25,0x57,0xdf,0x28,0x8d,0x9c,0xbd,0x07,0x42,0xbb,0x47,0x3e,0x3d,0xdd,0xd6,0x76,0xe9,0xcf,0x46,0x40,0xdd,0x08,0x08,0x6d,0x7d,0x02,0x03,0x01,0x00,0x01,0xa3,0x57,0x30,0x55,0x30,0x0e,0x06,0x03,0x55,0x1d,0x0f,0x01,0x01,0xff,0x04,0x04,0x03,0x02,0x02,0x84,0x30,0x13,0x06,0x03,0x55,0x1d,0x25,0x04,0x0c,0x30,0x0a,0x06,0x08,0x2b,0x06,0x01,0x05,0x05,0x07,0x03,0x01,0x30,0x0f,0x06,0x03,0x55,0x1d,0x13,0x01,0x01,0xff,0x04,0x05,0x30,0x03,0x01,0x01,0xff,0x30,0x1d,0x06,0x03,0x55,0x1d,0x0e,0x04,0x16,0x04,0x14,0xa4,0x54,0x9f,0x04,0xd1,0x0a,0xc5,0x3b,0x84,0x2d,0x6a,0x37,0x8e,0xf6,0x63,0x49,0xb6,0x4f,0x64,0x8a,0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,0x0b,0x05,0x00,0x03,0x82,0x01,0x01,0x00,0xab,0x32,0xa8,0xc7,0xcf,0x1c,0x32,0xeb,0xa2,0xfc,0x03,0x72,0x4e,0x13,0xce,0x72,0xff,0xa9,0xe1,0xa6,0x15,0xca,0xcb,0xe3,0x69,0x17,0xbe,0x8b,0x39,0xa6,0xad,0x98,0xc1,0x4f,0xef,0xb8,0x39,0x51,0x7c,0xcf,0xed,0x62,0x4e,0x20,0x40,0xb4,0x13,0x68,0x5d,0x2b,0xb6,0x73,0xeb,0xe9,0x7d,0x45,0xef,0xe9,0x34,0x2d,0x41,0xd8,0x45,0x79,0x9d,0x92,0x31,0x2d,0x07,0x67,0xc5,0x2e,0x8e,0x4c,0x69,0xcb,0x68,0x32,0x26,0x76,0x65,0xcd,0x4f,0xc2,0x28,0x4c,0xef,0xa7,0x57,0x2c,0x5d,0x37,0x11,0x87,0x8a,0xed,0xc6,0x0d,0xdb,0xfd,0xbd,0x12,0xab,0x07,0xfa,0xb9,0x51,0xfb,0xe4,0x8a,0x4e,0xab,0x04,0xf6,0x1b,0xfc,0x72,0xec,0x1c,0xe8,0x28,0xf9,0x72,0x18,0x4d,0xd2,0xa2,0xe5,0x9a,0x35,0x08,0x4f,0xe7,0x7f,0xe8,0x0f,0x42,0xb7,0x85,0x68,0xc8,0xfd,0x93,0x16,0x30,0x48,0x75,0x8d,0xe4,0x67,0xcf,0x1d,0x28,0xd3,0x92,0xd4,0x0b,0xb6,0x4f,0x7c,0x2d,0x63,0x14,0x1b,0x5f,0xd4,0x6d,0x48,0x75,0x42,0x76,0x4e,0xc0,0xa9,0xc5,0x0e,0x8b,0xa8,0x3d,0x0f,0x90,0x4c,0x2a,0xa4,0x91,0x76,0x48,0x7a,0xdf,0xf0,0x9f,0x27,0xa3,0x4c,0x32,0x90,0x67,0x5e,0xd4,0x41,0xe8,0x3f,0xaa,0x6a,0xe3,0xa4,0x3e,0xf2,0x6c,0x8d,0x6c,0xeb,0x38,0xa0,0x37,0x58,0x7f,0xec,0x87,0xda,0x61,0xbf,0xae,0x1c,0xeb,0x70,0x41,0x17,0xed,0x17,0x76,0x34,0x78,0x24,0x74,0x64,0x15,0x01,0x53,0xfb,0x32,0x8d,0x27,0x8c,0x48,0x09,0xa3,0x05,0x9f,0xb1,0x6a,0x15,0x3f,0x2f,0x9a,0x07'
},
{
msg_type: 12,
length: 296,
message_seq: 2,
fragment_offset: 0,
fragment_length: 296,
fragment: '0x03,0x00,0x1d,0x20,0x36,0xbf,0x07,0x89,0x38,0xbd,0x9b,0x29,0xe4,0xac,0xf9,0x64,0x64,0x8a,0x65,0x5c,0x5d,0xa8,0x68,0xc7,0x14,0x93,0xe8,0xf1,0x86,0xf1,0xc7,0xa6,0x25,0xbf,0x3b,0x24,0x04,0x01,0x01,0x00,0xbd,0x36,0xff,0x3a,0x8f,0x4f,0xa0,0x30,0x8a,0x41,0xfa,0x9f,0x4f,0x88,0xbc,0x90,0x33,0x70,0x9d,0x63,0xde,0xb4,0x31,0x8e,0x74,0xf7,0xba,0x88,0x01,0x85,0x03,0xd4,0x55,0xba,0xd1,0xfd,0x00,0xdc,0xe1,0xa4,0x5a,0x70,0x1b,0xb5,0x97,0xeb,0x0a,0x41,0x14,0xd0,0xb3,0xd6,0x74,0x19,0xf3,0x31,0xb0,0x7c,0x4c,0x3a,0xc7,0x7a,0x9c,0xab,0x33,0x09,0x15,0x69,0x76,0xf6,0xa6,0x34,0xec,0x24,0x04,0x56,0xf0,0x6b,0x45,0x49,0x73,0x68,0x67,0x91,0xf9,0xda,0x04,0xd8,0x68,0xea,0xfb,0xfb,0x9f,0x03,0x2e,0x4d,0x29,0x3e,0x6c,0xa3,0xe0,0x3c,0xb7,0xbc,0xe9,0x55,0x2f,0xb1,0xa3,0x5b,0xfa,0xa5,0x13,0xf5,0xbf,0x16,0x0c,0x23,0x10,0x33,0xdd,0x10,0xa6,0xb4,0x0a,0x2d,0x0e,0x64,0xf1,0x8c,0xa7,0x48,0x4e,0xfc,0xb6,0xaf,0x54,0x90,0xf6,0xfc,0xb5,0xf9,0xe9,0x37,0xa0,0xbb,0x19,0xe2,0x7d,0xbc,0x19,0x88,0x9a,0xa6,0x93,0xe4,0x56,0x43,0x44,0xec,0x29,0x38,0x73,0xb2,0xe8,0x74,0x75,0x36,0xad,0xe0,0x5a,0x82,0x0f,0x48,0x18,0x50,0x1d,0x28,0x37,0x0b,0x66,0xdb,0xf2,0x39,0xd3,0x13,0x01,0x5e,0x1e,0x0e,0x65,0x9b,0xbc,0x0e,0xaf,0xf5,0x41,0x68,0x88,0x90,0x79,0x13,0xe4,0x8a,0xab,0x89,0x93,0x8d,0x44,0x79,0xf4,0xea,0xd0,0xf4,0xc7,0xf0,0x85,0xa9,0xa8,0xd4,0xef,0x71,0xea,0xba,0x71,0x81,0xf2,0x5e,0x56,0xe3,0xd2,0x6a,0xc6,0xa0,0xdf,0x52,0xdc,0x55,0xd8,0xc0,0x62,0x2b,0x67,0x92,0x61,0xe2,0x10,0x2e,0xb3,0x6c,0x22,0x1c,0x99,0x16,0x71,0xdf'
},
{
msg_type: 13,
length: 25,
message_seq: 3,
fragment_offset: 0,
fragment_length: 25,
fragment: '0x02,0x01,0x40,0x00,0x12,0x04,0x03,0x08,0x04,0x04,0x01,0x05,0x03,0x08,0x05,0x05,0x01,0x08,0x06,0x06,0x01,0x02,0x01,0x00,0x00'
},
{
msg_type: 14,
length: 0,
message_seq: 4,
fragment_offset: 0,
fragment_length: 0,
fragment: '0x'
},
{
msg_type: 11,
length: 388,
message_seq: 1,
fragment_offset: 0,
fragment_length: 388,
fragment: '0x00,0x01,0x81,0x00,0x01,0x7e,0x30,0x82,0x01,0x7a,0x30,0x82,0x01,0x21,0xa0,0x03,0x02,0x01,0x02,0x02,0x01,0x01,0x30,0x0a,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x04,0x03,0x02,0x30,0x45,0x31,0x0b,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x41,0x55,0x31,0x13,0x30,0x11,0x06,0x03,0x55,0x04,0x08,0x13,0x0a,0x53,0x6f,0x6d,0x65,0x2d,0x53,0x74,0x61,0x74,0x65,0x31,0x21,0x30,0x1f,0x06,0x03,0x55,0x04,0x0a,0x13,0x18,0x49,0x6e,0x74,0x65,0x72,0x6e,0x65,0x74,0x20,0x57,0x69,0x64,0x67,0x69,0x74,0x73,0x20,0x50,0x74,0x79,0x20,0x4c,0x74,0x64,0x30,0x1e,0x17,0x0d,0x32,0x31,0x31,0x32,0x32,0x37,0x32,0x31,0x35,0x32,0x32,0x39,0x5a,0x17,0x0d,0x33,0x31,0x31,0x32,0x32,0x37,0x32,0x31,0x35,0x32,0x32,0x39,0x5a,0x30,0x45,0x31,0x0b,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x41,0x55,0x31,0x13,0x30,0x11,0x06,0x03,0x55,0x04,0x08,0x13,0x0a,0x53,0x6f,0x6d,0x65,0x2d,0x53,0x74,0x61,0x74,0x65,0x31,0x21,0x30,0x1f,0x06,0x03,0x55,0x04,0x0a,0x13,0x18,0x49,0x6e,0x74,0x65,0x72,0x6e,0x65,0x74,0x20,0x57,0x69,0x64,0x67,0x69,0x74,0x73,0x20,0x50,0x74,0x79,0x20,0x4c,0x74,0x64,0x30,0x59,0x30,0x13,0x06,0x07,0x2a,0x86,0x48,0xce,0x3d,0x02,0x01,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x03,0x01,0x07,0x03,0x42,0x00,0x04,0x09,0x9e,0x84,0x71,0xb4,0xf0,0x33,0xb6,0xc1,0x35,0x89,0xf5,0x9f,0x85,0xbd,0xdf,0x8d,0xb4,0x3a,0x91,0x45,0x63,0x04,0xc5,0x53,0x05,0x82,0x65,0xd4,0xec,0x9a,0xa0,0x01,0xc7,0xaa,0x5e,0xba,0xd0,0x2f,0x35,0xcd,0xcd,0x38,0xf7,0x9b,0x5c,0xa3,0xad,0xcf,0xe4,0xa3,0x26,0x1f,0x9f,0x91,0x23,0x06,0x14,0x9b,0x22,0xd5,0xc6,0x51,0x4a,0xa3,0x02,0x30,0x00,0x30,0x0a,0x06,0x08,0x2a,0x86,0x48,0xce,0x3d,0x04,0x03,0x02,0x03,0x47,0x00,0x30,0x44,0x02,0x20,0x4c,0xd3,0xae,0xbc,0x55,0xc8,0xa1,0x46,0x67,0x6b,0x1d,0xfb,0x1a,0x1c,0x31,0x4d,0xd2,0x71,0x54,0xfa,0xd3,0x50,0x1b,0xc8,0xb2,0x9d,0x82,0x42,0x31,0x06,0xaf,0xfd,0x02,0x20,0x1d,0x9f,0xc7,0x4f,0x66,0xeb,0xe6,0x20,0xe8,0xc0,0x57,0xc7,0xc8,0xbb,0x9c,0xb5,0xf2,0xd5,0x66,0x25,0x1e,0x1d,0xc1,0x1d,0x55,0xd8,0xea,0x05,0x02,0x7e,0x1b,0x35'
},
{
msg_type: 16,
length: 33,
message_seq: 2,
fragment_offset: 0,
fragment_length: 33,
fragment: '0x20,0x80,0x28,0xeb,0x2e,0xc8,0x3a,0x9f,0x26,0x27,0xb6,0xfe,0x7f,0x6f,0x65,0x5d,0x1c,0x9d,0x0e,0x8c,0x5e,0x9a,0xc1,0x3e,0x71,0xac,0x7d,0xe7,0x79,0xdc,0x65,0xb4,0x63'
},
{
msg_type: 15,
length: 74,
message_seq: 3,
fragment_offset: 0,
fragment_length: 74,
fragment: '0x04,0x03,0x00,0x46,0x30,0x44,0x02,0x20,0x34,0xb3,0x6f,0x17,0xbe,0xb3,0xf0,0x63,0x1d,0x80,0xa2,0x43,0x41,0x4e,0x71,0x42,0x0d,0xd1,0x57,0x06,0x31,0xf1,0x6a,0x4e,0x45,0xd1,0xd6,0xa6,0xb5,0xfe,0xfa,0x34,0x02,0x20,0x10,0xb2,0x30,0x5d,0x70,0xef,0xee,0x07,0xc7,0x06,0xaf,0x5b,0x9f,0xe5,0x44,0x13,0x08,0xb6,0x0f,0x4e,0x2d,0x35,0xa8,0xc4,0x78,0xc8,0x6f,0xd0,0xe9,0xc1,0x53,0xf7'
},
{
msg_type: 20,
length: 12,
message_seq: 4,
fragment_offset: 0,
fragment_length: 12,
fragment: '0xcd,0xc6,0x28,0xfe,0xeb,0x94,0xb1,0xe4,0x9e,0x56,0x0f,0x3a'
}
] +3ms
werift-dtls : packages/dtls/src/flight/client/flight5.ts : log finished {
id: 49199,
verifyDataLength: 12,
keyLength: 16,
nonceLength: 12,
ivLength: 4,
authTagLength: 16,
nonceImplicitLength: 4,
nonceExplicitLength: 8,
name: 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256',
blockAlgorithm: 'aes-128-gcm',
hashAlgorithm: 'sha256',
clientWriteKey: '0x8b,0x3d,0x81,0x37,0xc4,0x51,0x45,0x59,0xb0,0x00,0x4e,0x82,0x98,0x7c,0x6b,0xc8',
serverWriteKey: '0x36,0x6d,0xb5,0xab,0x45,0xfd,0x98,0xba,0xc7,0x95,0x80,0xea,0x83,0x37,0xc0,0x16',
clientNonce: '0x2d,0x44,0xa0,0x04,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x06',
serverNonce: '0x3a,0x3f,0xf4,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00'
} +7ms
werift/sctp/sctp receive init InitChunk {
flags: 0,
_body: <Buffer 3a 05 79 c4 00 50 00 00 ff ff ff ff 27 01 dd 1c c0 00 00 04 80 08 00 06 82 c0>,
initiateTag: 973437380,
advertisedRwnd: 5242880,
outboundStreams: 65535,
inboundStreams: 65535,
initialTsn: 654433564,
params: [ [ 49152, ], [ 32776, <Buffer 82 c0> ] ]
} +0ms
werift/sctp/sctp send initAck InitAckChunk {
flags: 0,
_body: ,
initiateTag: 1738840112,
advertisedRwnd: 1048576,
outboundStreams: 65535,
inboundStreams: 65535,
initialTsn: 4026905075,
params: [
[ 49152, ],
[ 32776, <Buffer c0 82> ],
[
7,
<Buffer 61 ca 35 9f 48 ee 1c 4b ae 74 f5 d6 eb d7 60 e9 ec 03 d6 5a 74 5b 87 05>
]
]
} +2ms
werift-dtls : packages/dtls/record/receive.ts : log change cipher spec +0ms
werift-dtls : packages/dtls/record/receive.ts : log decrypt handshake +0ms
werift-dtls : packages/dtls/src/client.ts : log handleHandshakes [ 20 ] +121ms
werift-dtls : packages/dtls/src/client.ts : log dtls connected +0ms
werift:packages/webrtc/src/transport/dtls.ts selected SRTP Profile 1 +0ms
werift:packages/webrtc/src/transport/dtls.ts dtls connected +4ms
werift:packages/webrtc/src/peerConnection.ts dtls connected +359ms
werift/sctp/sctp send init InitChunk {
flags: 0,
_body: ,
initiateTag: 1738840112,
advertisedRwnd: 1048576,
outboundStreams: 65535,
inboundStreams: 65535,
initialTsn: 4026905075,
params: [ [ 49152, ], [ 32776, <Buffer c0 82> ] ]
} +12ms
werift/webrtc/transport/sctp DCEP 111 50 <Buffer 03 00 00 00 00 00 00 00 00 06 00 12 70 75 73 68 65 73 77 65 62 72 74 63 2d 64 61 74 61 63 68 61 6e 6e 65 6c> +0ms
werift/webrtc/transport/sctp DATA_CHANNEL_OPEN {
channelType: 0,
reliability: 0,
streamId: 111,
label: 'pushes',
protocol: 'webrtc-datachannel'
} +0ms
werift/webrtc/datachannel change state open +0ms
werift/webrtc/transport/sctp DCEP 113 50 <Buffer 03 00 00 00 00 00 00 00 00 0b 00 12 63 6f 6c 6c 65 63 74 69 6f 6e 73 77 65 62 72 74 63 2d 64 61 74 61 63 68 61 6e 6e 65 6c> +0ms
werift/webrtc/transport/sctp DATA_CHANNEL_OPEN {
channelType: 0,
reliability: 0,
streamId: 113,
label: 'collections',
protocol: 'webrtc-datachannel'
} +0ms
werift/webrtc/datachannel change state open +1ms
werift-ice:packages/ice/src/transport.ts send error [ '2607:f8b0:400e:c0a::7f', 19305 ] <Buffer 00 01 00 50 21 12 a4 42 ed 6a 91 31 db 2c 37 e8 b9 05 42 ac 00 06 00 15 51 4e 49 39 57 59 59 47 59 33 53 55 56 4b 46 55 3a 37 34 34 31 00 00 00 00 24 ... 50 more bytes> +401ms
werift-ice:packages/ice/src/transport.ts send error [ '2607:f8b0:400e:c0a::7f', 19305 ] <Buffer 00 01 00 50 21 12 a4 42 ed 6a 91 31 db 2c 37 e8 b9 05 42 ac 00 06 00 15 51 4e 49 39 57 59 59 47 59 33 53 55 56 4b 46 55 3a 37 34 34 31 00 00 00 00 24 ... 50 more bytes> +801ms
werift-ice:packages/ice/src/transport.ts send error [ '2607:f8b0:400e:c0a::7f', 19305 ] <Buffer 00 01 00 50 21 12 a4 42 ed 6a 91 31 db 2c 37 e8 b9 05 42 ac 00 06 00 15 51 4e 49 39 57 59 59 47 59 33 53 55 56 4b 46 55 3a 37 34 34 31 00 00 00 00 24 ... 50 more bytes> +2s
werift-ice:packages/ice/src/stun/transaction.ts retry failed times:7 maxLimit:7 +0ms
werift-ice : packages/ice/src/ice.ts : log failure case undefined +6s
werift-ice : packages/ice/src/ice.ts : log CandidatePairState.FAILED +0ms
werift:packages/webrtc/src/peerConnection.ts connectionStateChange connected +12s
werift/webrtc/transport/sctp DCEP 1 50 <Buffer 02> +12s
werift/webrtc/transport/sctp DATA_CHANNEL_ACK +0ms
werift/webrtc/datachannel change state open +12s
werift/webrtc/transport/sctp DCEP 111 50 <Buffer 03 00 00 00 00 00 00 00 00 06 00 12 70 75 73 68 65 73 77 65 62 72 74 63 2d 64 61 74 61 63 68 61 6e 6e 65 6c> +303ms
werift/webrtc/transport/sctp DCEP 113 50 <Buffer 03 00 00 00 00 00 00 00 00 0b 00 12 63 6f 6c 6c 65 63 74 69 6f 6e 73 77 65 62 72 74 63 2d 64 61 74 61 63 68 61 6e 6e 65 6c> +1ms
/Users/me/Source/webrtctest/node_modules/werift/lib/webrtc/src/transport/sctp.js:52
throw new Error();
^
Error
at Object.RTCSctpTransport.datachannelReceive [as execute] (/Users/me/Source/webrtctest/node_modules/werift/lib/webrtc/src/transport/sctp.js:52:43)
at Event.execute (/Users/me/Source/webrtctest/node_modules/rx.mini/lib/core/index.js:17:30)
at SCTP.receive (/Users/me/Source/webrtctest/node_modules/werift/lib/sctp/src/sctp.js:625:24)
at SCTP.receiveDataChunk (/Users/me/Source/webrtctest/node_modules/werift/lib/sctp/src/sctp.js:475:18)
at SCTP.receiveChunk (/Users/me/Source/webrtctest/node_modules/werift/lib/sctp/src/sctp.js:263:22)
at SCTP.handleData (/Users/me/Source/webrtctest/node_modules/werift/lib/sctp/src/sctp.js:232:24)
at RTCDtlsTransport.SCTP.transport.onData [as dataReceiver] (/Users/me/Source/webrtctest/node_modules/werift/lib/sctp/src/sctp.js:197:18)
at Object.execute (/Users/me/Source/webrtctest/node_modules/werift/lib/webrtc/src/transport/dtls.js:89:22)
at Event.execute (/Users/me/Source/webrtctest/node_modules/rx.mini/lib/core/index.js:17:30)
at IceTransport.DtlsSocket.udpOnMessage [as onData] (/Users/me/Source/webrtctest/node_modules/werift/lib/dtls/src/socket.js:70:45)
Process finished with exit code 1