UNPKG

@jp-web/ts-sdk

Version:

视频客服,视频会议Web端及微信小程序端SDK

750 lines 81.2 kB
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>WebStompSocket | webrtc-guest-sdk</title> <meta name="description" content="Documentation for webrtc-guest-sdk"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">webrtc-guest-sdk</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../index.html">Globals</a> </li> <li> <a href="../modules/_webrtc_webstompsocket_.html">&quot;webrtc/WebStompSocket&quot;</a> </li> <li> <a href="_webrtc_webstompsocket_.webstompsocket.html">WebStompSocket</a> </li> </ul> <h1>Class WebStompSocket</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-comment"> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Web端<a href="../interfaces/_interface_stomp_socket_stompsocket_.stompsocket.html">StompSocket</a>实现</p> </div> </div> </section> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <a href="_eventtarget_.eventtarget.html" class="tsd-signature-type">EventTarget</a> <ul class="tsd-hierarchy"> <li> <span class="target">WebStompSocket</span> </li> </ul> </li> </ul> </section> <section class="tsd-panel"> <h3>Implements</h3> <ul class="tsd-hierarchy"> <li><a href="../interfaces/_interface_stomp_socket_stompsocket_.stompsocket.html" class="tsd-signature-type">StompSocket</a></li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section tsd-is-external"> <h3>Constructors</h3> <ul class="tsd-index-list"> <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#constructor" class="tsd-kind-icon">constructor</a></li> </ul> </section> <section class="tsd-index-section tsd-is-external"> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_ackcountid" class="tsd-kind-icon">_ack<wbr>Count<wbr>Id</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_retrydatamap" class="tsd-kind-icon">_retry<wbr>Data<wbr>Map</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_uncheckackmessage" class="tsd-kind-icon">_uncheck<wbr>Ack<wbr>Message</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#cachedataqueue" class="tsd-kind-icon">cache<wbr>Data<wbr>Queue</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#connecturl" class="tsd-kind-icon">connect<wbr>Url</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#enableack" class="tsd-kind-icon">enableACK</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#headers" class="tsd-kind-icon">headers</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#heartbeaturl" class="tsd-kind-icon">heartbeat<wbr>Url</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#interval" class="tsd-kind-icon">interval</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#lastconsumeid" class="tsd-kind-icon">last<wbr>Consume<wbr>Id</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#listenermap" class="tsd-kind-icon">listener<wbr>Map</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#maxreconnectcount" class="tsd-kind-icon">max<wbr>Reconnect<wbr>Count</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#missingheartbeat" class="tsd-kind-icon">missing<wbr>Heartbeat</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#receiveurl" class="tsd-kind-icon">receive<wbr>Url</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#reconnectcount" class="tsd-kind-icon">reconnect<wbr>Count</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#reconnectinterval" class="tsd-kind-icon">reconnect<wbr>Interval</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#sendurl" class="tsd-kind-icon">send<wbr>Url</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#sockjsinst" class="tsd-kind-icon">sockJSInst</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#socket" class="tsd-kind-icon">socket</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#state" class="tsd-kind-icon">state</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#timeout" class="tsd-kind-icon">timeout</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#unheartbeat" class="tsd-kind-icon">unheartbeat</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#heartbeat_interval" class="tsd-kind-icon">HEARTBEAT_<wbr>INTERVAL</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#max_reconnect_count" class="tsd-kind-icon">MAX_<wbr>RECONNECT_<wbr>COUNT</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#reconnect_interval" class="tsd-kind-icon">RECONNECT_<wbr>INTERVAL</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#timeout-1" class="tsd-kind-icon">TIMEOUT</a></li> <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#reporter" class="tsd-kind-icon">reporter</a></li> </ul> </section> <section class="tsd-index-section tsd-is-external"> <h3>Methods</h3> <ul class="tsd-index-list"> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_checknoackresponsemessage" class="tsd-kind-icon">_check<wbr>NoAck<wbr>Response<wbr>Message</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_dispatchmessage" class="tsd-kind-icon">_dispatch<wbr>Message</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_reconnect" class="tsd-kind-icon">_reconnect</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_responseackmessage" class="tsd-kind-icon">_response<wbr>Ack<wbr>Message</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#_socketinit" class="tsd-kind-icon">_socket<wbr>Init</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#addeventlistener" class="tsd-kind-icon">add<wbr>Event<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#addeventlisteners" class="tsd-kind-icon">add<wbr>Event<wbr>Listeners</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#clearlistener" class="tsd-kind-icon">clear<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#close" class="tsd-kind-icon">close</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#dispatchevent" class="tsd-kind-icon">dispatch<wbr>Event</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#dispatcheventlite" class="tsd-kind-icon">dispatch<wbr>Event<wbr>Lite</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#haslistener" class="tsd-kind-icon">has<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#heartbeat" class="tsd-kind-icon">heartbeat</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#removeeventlistener" class="tsd-kind-icon">remove<wbr>Event<wbr>Listener</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#send" class="tsd-kind-icon">send</a></li> <li class="tsd-kind-method tsd-parent-kind-class tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#sendto" class="tsd-kind-icon">send<wbr>To</a></li> </ul> </section> <section class="tsd-index-section tsd-is-external"> <h3>Object literals</h3> <ul class="tsd-index-list"> <li class="tsd-kind-object-literal tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#default_event_listener_options" class="tsd-kind-icon">DEFAULT_<wbr>EVENT_<wbr>LISTENER_<wbr>OPTIONS</a></li> <li class="tsd-kind-object-literal tsd-parent-kind-class tsd-is-static tsd-is-external"><a href="_webrtc_webstompsocket_.webstompsocket.html#default_socket_config" class="tsd-kind-icon">DEFAULT_<wbr>SOCKET_<wbr>CONFIG</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-external"> <h2>Constructors</h2> <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-external"> <a name="constructor" class="tsd-anchor"></a> <h3>constructor</h3> <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-external"> <li class="tsd-signature tsd-kind-icon">new <wbr>Web<wbr>Stomp<wbr>Socket<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../interfaces/_interface_stomp_socket_stompsocketconfig_.stompsocketconfig.html" class="tsd-signature-type">StompSocketConfig</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_webrtc_webstompsocket_.webstompsocket.html" class="tsd-signature-type">WebStompSocket</a></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Overrides <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#constructor">constructor</a></p> </aside> <div class="tsd-comment tsd-typography"> <dl class="tsd-comment-tags"> <dt>desc</dt> <dd><p>构造函数</p> </dd> </dl> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>config: <a href="../interfaces/_interface_stomp_socket_stompsocketconfig_.stompsocketconfig.html" class="tsd-signature-type">StompSocketConfig</a></h5> <div class="tsd-comment tsd-typography"> <div class="lead"> </div> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <a href="_webrtc_webstompsocket_.webstompsocket.html" class="tsd-signature-type">WebStompSocket</a></h4> </li> </ul> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-external"> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="_ackcountid" class="tsd-anchor"></a> <h3>_ack<wbr>Count<wbr>Id</h3> <div class="tsd-signature tsd-kind-icon">_ack<wbr>Count<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="_retrydatamap" class="tsd-anchor"></a> <h3>_retry<wbr>Data<wbr>Map</h3> <div class="tsd-signature tsd-kind-icon">_retry<wbr>Data<wbr>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">[</span><a href="../modules/_interface_socket_socket_.html#socketsenddatatype" class="tsd-signature-type">SocketSendDataType</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><a href="../interfaces/_interface_socket_socketsendoptions_.socketsendoptions.html" class="tsd-signature-type">SocketSendOptions</a><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>储存需要响应ack的消息, 以 <code>ackId</code> 为key</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="_uncheckackmessage" class="tsd-anchor"></a> <h3>_uncheck<wbr>Ack<wbr>Message</h3> <div class="tsd-signature tsd-kind-icon">_uncheck<wbr>Ack<wbr>Message<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-type-declaration"> <h4>Type declaration</h4> <ul class="tsd-parameters"> <li class="tsd-parameter-signature"> <ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-property"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </li> </ul> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="cachedataqueue" class="tsd-anchor"></a> <h3>cache<wbr>Data<wbr>Queue</h3> <div class="tsd-signature tsd-kind-icon">cache<wbr>Data<wbr>Queue<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><a href="../modules/_interface_socket_socket_.html#socketsenddatatype" class="tsd-signature-type">SocketSendDataType</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><a href="../interfaces/_interface_socket_socketsendoptions_.socketsendoptions.html" class="tsd-signature-type">SocketSendOptions</a><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>Socket连接断开或未连接的情况下将消息缓存的队列</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="connecturl" class="tsd-anchor"></a> <h3>connect<wbr>Url</h3> <div class="tsd-signature tsd-kind-icon">connect<wbr>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="enableack" class="tsd-anchor"></a> <h3>enableACK</h3> <div class="tsd-signature tsd-kind-icon">enableACK<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="headers" class="tsd-anchor"></a> <h3>headers</h3> <div class="tsd-signature tsd-kind-icon">headers<span class="tsd-signature-symbol">:</span> <a href="../modules/_interface_stomp_socket_stompsocket_.html#stompsocketheader" class="tsd-signature-type">StompSocketHeader</a></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="heartbeaturl" class="tsd-anchor"></a> <h3>heartbeat<wbr>Url</h3> <div class="tsd-signature tsd-kind-icon">heartbeat<wbr>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="interval" class="tsd-anchor"></a> <h3>interval</h3> <div class="tsd-signature tsd-kind-icon">interval<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="lastconsumeid" class="tsd-anchor"></a> <h3>last<wbr>Consume<wbr>Id</h3> <div class="tsd-signature tsd-kind-icon">last<wbr>Consume<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="listenermap" class="tsd-anchor"></a> <h3>listener<wbr>Map</h3> <div class="tsd-signature tsd-kind-icon">listener<wbr>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div> <aside class="tsd-sources"> <p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#listenermap">listenerMap</a></p> </aside> <div class="tsd-type-declaration"> <h4>Type declaration</h4> <ul class="tsd-parameters"> <li class="tsd-parameter-index-signature"> <h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a><span class="tsd-signature-symbol">&gt;</span></h5> </li> </ul> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="maxreconnectcount" class="tsd-anchor"></a> <h3>max<wbr>Reconnect<wbr>Count</h3> <div class="tsd-signature tsd-kind-icon">max<wbr>Reconnect<wbr>Count<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="missingheartbeat" class="tsd-anchor"></a> <h3>missing<wbr>Heartbeat</h3> <div class="tsd-signature tsd-kind-icon">missing<wbr>Heartbeat<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="receiveurl" class="tsd-anchor"></a> <h3>receive<wbr>Url</h3> <div class="tsd-signature tsd-kind-icon">receive<wbr>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="reconnectcount" class="tsd-anchor"></a> <h3>reconnect<wbr>Count</h3> <div class="tsd-signature tsd-kind-icon">reconnect<wbr>Count<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="reconnectinterval" class="tsd-anchor"></a> <h3>reconnect<wbr>Interval</h3> <div class="tsd-signature tsd-kind-icon">reconnect<wbr>Interval<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="sendurl" class="tsd-anchor"></a> <h3>send<wbr>Url</h3> <div class="tsd-signature tsd-kind-icon">send<wbr>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="sockjsinst" class="tsd-anchor"></a> <h3>sockJSInst</h3> <div class="tsd-signature tsd-kind-icon">sockJSInst<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WebSocket</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="socket" class="tsd-anchor"></a> <h3>socket</h3> <div class="tsd-signature tsd-kind-icon">socket<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="state" class="tsd-anchor"></a> <h3>state</h3> <div class="tsd-signature tsd-kind-icon">state<span class="tsd-signature-symbol">:</span> <a href="../enums/_interface_socket_socketconstants_.socketstate.html" class="tsd-signature-type">SocketState</a></div> <aside class="tsd-sources"> <p>Implementation of <a href="../interfaces/_interface_stomp_socket_stompsocket_.stompsocket.html">StompSocket</a>.<a href="../interfaces/_interface_stomp_socket_stompsocket_.stompsocket.html#state">state</a></p> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="timeout" class="tsd-anchor"></a> <h3>timeout</h3> <div class="tsd-signature tsd-kind-icon">timeout<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external"> <a name="unheartbeat" class="tsd-anchor"></a> <h3>unheartbeat</h3> <div class="tsd-signature tsd-kind-icon">unheartbeat<span class="tsd-signature-symbol">:</span> <a href="../modules/_interface_socket_socket_.html#socketunheartbeattype" class="tsd-signature-type">SocketUnheartbeatType</a></div> <aside class="tsd-sources"> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"> <a name="heartbeat_interval" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> HEARTBEAT_<wbr>INTERVAL</h3> <div class="tsd-signature tsd-kind-icon">HEARTBEAT_<wbr>INTERVAL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10 * 1000</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>默认的心跳间隔</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"> <a name="max_reconnect_count" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> MAX_<wbr>RECONNECT_<wbr>COUNT</h3> <div class="tsd-signature tsd-kind-icon">MAX_<wbr>RECONNECT_<wbr>COUNT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>默认最大重连次数</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"> <a name="reconnect_interval" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> RECONNECT_<wbr>INTERVAL</h3> <div class="tsd-signature tsd-kind-icon">RECONNECT_<wbr>INTERVAL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10 * 1000</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>默认重连间隔</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"> <a name="timeout-1" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> TIMEOUT</h3> <div class="tsd-signature tsd-kind-icon">TIMEOUT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 50 * 1000</span></div> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>默认心跳超时时间</p> </div> </div> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static tsd-is-external"> <a name="reporter" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagStatic">Static</span> reporter</h3> <div class="tsd-signature tsd-kind-icon">reporter<span class="tsd-signature-symbol">:</span> <a href="_reporter_reporter_.reporter.html" class="tsd-signature-type">Reporter</a><span class="tsd-signature-symbol"> = new Reporter(&#x27;WebStompSocket&#x27;)</span></div> <aside class="tsd-sources"> </aside> </section> </section> <section class="tsd-panel-group tsd-member-group tsd-is-external"> <h2>Methods</h2> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external"> <a name="_checknoackresponsemessage" class="tsd-anchor"></a> <h3>_check<wbr>NoAck<wbr>Response<wbr>Message</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external"> <li class="tsd-signature tsd-kind-icon">_check<wbr>NoAck<wbr>Response<wbr>Message<span class="tsd-signature-symbol">(</span>interval<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, timeout<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>启动一个定时器, 以重新发送未响应ack的消息</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5><span class="tsd-flag ts-flagDefault value">Default value</span> interval: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 5000</span></h5> <div class="tsd-comment tsd-typography"> <p>检查时间间隔, 单位: ms</p> </div> </li> <li> <h5><span class="tsd-flag ts-flagDefault value">Default value</span> timeout: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 5000</span></h5> <div class="tsd-comment tsd-typography"> <p>响应ack消息的超时时间</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h4> <p>返回一个函数用于取消定时器</p> <ul class="tsd-parameters"> <li class="tsd-parameter-signature"> <ul class="tsd-signatures tsd-kind-type-literal"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </li> </ul> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external"> <a name="_dispatchmessage" class="tsd-anchor"></a> <h3>_dispatch<wbr>Message</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external"> <li class="tsd-signature tsd-kind-icon">_dispatch<wbr>Message<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>data: <span class="tsd-signature-type">any</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external"> <a name="_reconnect" class="tsd-anchor"></a> <h3>_reconnect</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external"> <li class="tsd-signature tsd-kind-icon">_reconnect<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> </aside> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-external"> <a name="_responseackmessage" class="tsd-anchor"></a> <h3><span class="tsd-flag ts-flagPrivate">Private</span> _response<wbr>Ack<wbr>Message</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-external"> <li class="tsd-signature tsd-kind-icon">_response<wbr>Ack<wbr>Message<span class="tsd-signature-symbol">(</span>ackId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>响应一个ack消息</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>ackId: <span class="tsd-signature-type">number</span></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external"> <a name="_socketinit" class="tsd-anchor"></a> <h3>_socket<wbr>Init</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external"> <li class="tsd-signature tsd-kind-icon">_socket<wbr>Init<span class="tsd-signature-symbol">(</span>headers<span class="tsd-signature-symbol">: </span><a href="../modules/_interface_stomp_socket_stompsocket_.html#stompsocketheader" class="tsd-signature-type">StompSocketHeader</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> </aside> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>headers: <a href="../modules/_interface_stomp_socket_stompsocket_.html#stompsocketheader" class="tsd-signature-type">StompSocketHeader</a></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="addeventlistener" class="tsd-anchor"></a> <h3>add<wbr>Event<wbr>Listener</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <li class="tsd-signature tsd-kind-icon">add<wbr>Event<wbr>Listener<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a>, func<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#addeventlistener">addEventListener</a></p> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>添加事件监听器</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>type: <a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a></h5> <div class="tsd-comment tsd-typography"> <p>要监听的事件类型</p> </div> </li> <li> <h5>func: <a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a></h5> <div class="tsd-comment tsd-typography"> <p>事件监听回调</p> </div> </li> <li> <h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a></h5> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></h4> <p>若添加成功则返回一个函数, 用于移除事件监听</p> <ul class="tsd-parameters"> <li class="tsd-parameter-signature"> <ul class="tsd-signatures tsd-kind-type-literal"> <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </li> </ul> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="addeventlisteners" class="tsd-anchor"></a> <h3>add<wbr>Event<wbr>Listeners</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <li class="tsd-signature tsd-kind-icon">add<wbr>Event<wbr>Listeners<span class="tsd-signature-symbol">(</span>types<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a><span class="tsd-signature-symbol">&gt;</span>, func<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">(Anonymous function)</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#addeventlisteners">addEventListeners</a></p> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>对多个事件添加同一个事件监听器</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>types: <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a><span class="tsd-signature-symbol">&gt;</span></h5> <div class="tsd-comment tsd-typography"> <p>要监听的事件类型</p> </div> </li> <li> <h5>func: <a href="../modules/_eventtarget_.html#eventlistenertype" class="tsd-signature-type">EventListenerType</a></h5> <div class="tsd-comment tsd-typography"> <p>事件监听回调</p> </div> </li> <li> <h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/_eventtarget_.eventlisteneroptions.html" class="tsd-signature-type">EventListenerOptions</a></h5> <div class="tsd-comment tsd-typography"> <p>设置监听器参数</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">(Anonymous function)</span></h4> <p>若添加成功则返回一个函数, 用于移除事件监听</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="clearlistener" class="tsd-anchor"></a> <h3>clear<wbr>Listener</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <li class="tsd-signature tsd-kind-icon">clear<wbr>Listener<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#clearlistener">clearListener</a></p> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>清空所有绑定的事件</p> </div> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external"> <a name="close" class="tsd-anchor"></a> <h3>close</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external"> <li class="tsd-signature tsd-kind-icon">close<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Implementation of <a href="../interfaces/_interface_stomp_socket_stompsocket_.stompsocket.html">StompSocket</a>.<a href="../interfaces/_interface_stomp_socket_stompsocket_.stompsocket.html#close">close</a></p> </aside> <div class="tsd-comment tsd-typography"> <dl class="tsd-comment-tags"> <dt>desc</dt> <dd><p>关闭<a href="_webrtc_webstompsocket_.webstompsocket.html">WebStompSocket</a></p> </dd> </dl> </div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="dispatchevent" class="tsd-anchor"></a> <h3>dispatch<wbr>Event</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <li class="tsd-signature tsd-kind-icon">dispatch<wbr>Event<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="_eventtarget_.event.html" class="tsd-signature-type">Event</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li> </ul> <ul class="tsd-descriptions"> <li class="tsd-description"> <aside class="tsd-sources"> <p>Inherited from <a href="_eventtarget_.eventtarget.html">EventTarget</a>.<a href="_eventtarget_.eventtarget.html#dispatchevent">dispatchEvent</a></p> </aside> <div class="tsd-comment tsd-typography"> <div class="lead"> <p>分发事件</p> </div> </div> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameters"> <li> <h5>event: <a href="_eventtarget_.event.html" class="tsd-signature-type">Event</a></h5> <div class="tsd-comment tsd-typography"> <p>分发的事件对象</p> </div> </li> </ul> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4> <p>事件是否发送成功</p> </li> </ul> </section> <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <a name="dispatcheventlite" class="tsd-anchor"></a> <h3>dispatch<wbr>Event<wbr>Lite</h3> <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"> <li class="tsd-signature tsd-kind-icon">dispatch<wbr>Event<wbr>Lite<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="../modules/_eventtarget_.html#eventtargettype" class="tsd-signature-type">EventTargetType</a>, message<span class="tsd-signature-symbol">?: </span><a href="../modules/_eventtarget_.html#eventtar