@@ -64,6 +64,34 @@ <h2>Receive</h2>
6464 href ="http://www.html5rocks.com/en/tutorials/webrtc/basics/#toc-rtcdatachannel "
6565 title ="RTCDataChannel section of HTML5 Rocks article about WebRTC "> Getting Started With WebRTC</ a > .</ p >
6666
67+ < div id ="snap " class ="infobox ">
68+ < h2 > SNAP origin trial</ h2 >
69+ < p > From Chrome 151 to Chrome 156 until November 17th there is a SNAP origin trial which you can register
70+ for at < a
71+ href ="https://developer.chrome.com/origintrials/#/view_trial/3793719736106221569 "
72+ title ="SNAP origin trial registration "> the Chrome origin trials page</ a > .
73+ This sample uses an origin trial token added in
74+ < a href ="https://github.com/webrtc/samples/pull/1735 "
75+ title ="SNAP origin trial usage "> webrtc/samples#1735</ a >
76+ to experimentally enable SNAP.
77+ </ p >
78+ </ div >
79+
80+ < div id ="sctpLogging " class ="infobox ">
81+ < h2 > Inspecting SCTP traffic</ h2 >
82+ < p > To inspect the SCTP traffic, start Chrome with logging enabled:</ p >
83+ < pre > < code > chrome --enable-logging --v=1</ code > </ pre >
84+
85+ < p > The logs are written to a file whose location depends on your platform; see < a
86+ href ="https://support.google.com/chrome/a/answer/6271282?hl=en "
87+ title ="Where to find Chrome logs "> where to find Chrome logs</ a > .</ p >
88+
89+ < p > Then grep the Chrome logs for < code > SCTP_PACKET</ code > and turn the result into a pcap
90+ with < a href ="https://www.wireshark.org/docs/man-pages/text2pcap.html "
91+ title ="text2pcap manual page "> < code > text2pcap</ code > </ a > :</ p >
92+ < pre > < code > text2pcap -D -u 1001,2001 -t %H:%M:%S.%f log.txt sctp.pcap</ code > </ pre >
93+ </ div >
94+
6795 < a href ="https://github.com/webrtc/samples/tree/gh-pages/src/content/datachannel/basic "
6896 title ="View source for this page on GitHub " id ="viewSource "> View source on GitHub</ a >
6997</ div >
0 commit comments