var myverto = new $.verto({yada: yada});

myverto.hangup();  // hangup all active calls

myverto.purge();  // probably not necessary but doesn't hurt. Cleans out table internally.

myverto.logout(); // Disconnect WebSocket



On Mon, Sep 19, 2016 at 4:26 PM, Oleg Stolyar <olegstolyar@gmail.com> wrote:
Hi guys,

how do I properly tear down a Verto object in JS to make sure the associated socket is closed?

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

ClueCon Weekly Development Call 
☎ sip:888@conference.freeswitch.org  ☎ +19193869900