<div dir="ltr">Using websocket for media? Usually in WebRTC, websocket is for signalling such as SIP or Verto.<div><br></div><div><div>/Kaiduan</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 24, 2021 at 10:11 AM Qihong Wang <<a href="mailto:qihongw@gmail.com">qihongw@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br>I'm new to Freeswitch and real time communication. However, I'm involving a project which uses Freeswitch gateway for WebRTC communication. The client, mostly JavaScript code, uses Websocket to send media data and also the heartbeat regardless the ping/pong of Websocket.  Freeswitch must respond that heartbeat. I'm not sure where to start. I'm thinking src/mod/endpoints/mod_rtc/mod_rtc.c or mod_verto.c/mod_verto.c, ws.c might be the right place to add heartbeat handling?<div><br>The second thought is using Freeswitch's event system, especially the buildin heartbeat event. If so, our client needs to give up its own heartbeat, although the possibility is very low. I'd love to hear how to utilize Freeswitch's heartbeat event between our client and Freeswitch gateway.<br><br></div><div>Thanks in advance!</div><div>Qihong<br></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Founder of Goodstartsoft<div><a href="https://www.goodstartsoft.com" target="_blank">https://www.goodstartsoft.com</a></div></div></div>