grpc.Channel.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>Documentation Class: Channel</title>
  7. <!--[if lt IE 9]>
  8. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  9. <![endif]-->
  10. <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
  11. <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
  12. </head>
  13. <body>
  14. <div class="navbar navbar-default navbar-fixed-top ">
  15. <div class="container">
  16. <div class="navbar-header">
  17. <a class="navbar-brand" href="index.html">Documentation</a>
  18. <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
  19. <span class="icon-bar"></span>
  20. <span class="icon-bar"></span>
  21. <span class="icon-bar"></span>
  22. </button>
  23. </div>
  24. <div class="navbar-collapse collapse" id="topNavigation">
  25. <ul class="nav navbar-nav">
  26. <li class="dropdown">
  27. <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
  28. <ul class="dropdown-menu ">
  29. <li><a href="grpc.html">grpc</a></li><li><a href="grpc.credentials.html">grpc.credentials</a></li>
  30. </ul>
  31. </li>
  32. <li class="dropdown">
  33. <a href="modules.list.html" class="dropdown-toggle" data-toggle="dropdown">Modules<b class="caret"></b></a>
  34. <ul class="dropdown-menu ">
  35. <li><a href="module-src_client_interceptors.html">src/client_interceptors</a></li>
  36. </ul>
  37. </li>
  38. <li class="dropdown">
  39. <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
  40. <ul class="dropdown-menu ">
  41. <li><a href="grpc.Channel.html">grpc.Channel</a></li><li><a href="grpc.Client.html">grpc.Client</a></li><li><a href="grpc.credentials-CallCredentials.html">grpc.credentials~CallCredentials</a></li><li><a href="grpc.credentials-ChannelCredentials.html">grpc.credentials~ChannelCredentials</a></li><li><a href="grpc.Metadata.html">grpc.Metadata</a></li><li><a href="grpc.Server.html">grpc.Server</a></li><li><a href="grpc.ServerCredentials.html">grpc.ServerCredentials</a></li><li><a href="grpc-Call.html">grpc~Call</a></li><li><a href="grpc-ClientDuplexStream.html">grpc~ClientDuplexStream</a></li><li><a href="grpc-ClientReadableStream.html">grpc~ClientReadableStream</a></li><li><a href="grpc-ClientUnaryCall.html">grpc~ClientUnaryCall</a></li><li><a href="grpc-ClientWritableStream.html">grpc~ClientWritableStream</a></li><li><a href="grpc-ServerDuplexStream.html">grpc~ServerDuplexStream</a></li><li><a href="grpc-ServerReadableStream.html">grpc~ServerReadableStream</a></li><li><a href="grpc-ServerUnaryCall.html">grpc~ServerUnaryCall</a></li><li><a href="grpc-ServerWritableStream.html">grpc~ServerWritableStream</a></li><li><a href="module-src_client_interceptors-EndListener.html">src/client_interceptors~EndListener</a></li><li><a href="module-src_client_interceptors-InterceptingCall.html">src/client_interceptors~InterceptingCall</a></li><li><a href="module-src_client_interceptors-InterceptingListener.html">src/client_interceptors~InterceptingListener</a></li><li><a href="module-src_client_interceptors-InterceptorConfigurationError.html">src/client_interceptors~InterceptorConfigurationError</a></li><li><a href="module-src_client_interceptors-ListenerBuilder.html">src/client_interceptors~ListenerBuilder</a></li><li><a href="module-src_client_interceptors-RequesterBuilder.html">src/client_interceptors~RequesterBuilder</a></li><li><a href="module-src_client_interceptors-StatusBuilder.html">src/client_interceptors~StatusBuilder</a></li>
  42. </ul>
  43. </li>
  44. <li class="dropdown">
  45. <a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
  46. <ul class="dropdown-menu ">
  47. <li><a href="grpc-ClientDuplexStream.html#event:metadata">grpc~ClientDuplexStream#metadata</a></li><li><a href="grpc-ClientDuplexStream.html#event:status">grpc~ClientDuplexStream#status</a></li><li><a href="grpc-ClientReadableStream.html#event:metadata">grpc~ClientReadableStream#metadata</a></li><li><a href="grpc-ClientReadableStream.html#event:status">grpc~ClientReadableStream#status</a></li><li><a href="grpc-ClientUnaryCall.html#event:metadata">grpc~ClientUnaryCall#event:metadata</a></li><li><a href="grpc-ClientUnaryCall.html#event:status">grpc~ClientUnaryCall#event:status</a></li><li><a href="grpc-ClientWritableStream.html#event:metadata">grpc~ClientWritableStream#metadata</a></li><li><a href="grpc-ClientWritableStream.html#event:status">grpc~ClientWritableStream#status</a></li><li><a href="grpc-ServerDuplexStream.html#~event:cancelled">grpc~ServerDuplexStream~event:cancelled</a></li><li><a href="grpc-ServerReadableStream.html#~event:cancelled">grpc~ServerReadableStream~event:cancelled</a></li><li><a href="grpc-ServerUnaryCall.html#~event:cancelled">grpc~ServerUnaryCall~event:cancelled</a></li><li><a href="grpc-ServerWritableStream.html#~event:cancelled">grpc~ServerWritableStream~event:cancelled</a></li>
  48. </ul>
  49. </li>
  50. <li class="dropdown">
  51. <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
  52. <ul class="dropdown-menu ">
  53. <li><a href="global.html#CancelRequester">CancelRequester</a></li><li><a href="global.html#CloseRequester">CloseRequester</a></li><li><a href="global.html#createStatusError">createStatusError</a></li><li><a href="global.html#getClientInterceptors">getClientInterceptors</a></li><li><a href="global.html#getMethodType">getMethodType</a></li><li><a href="global.html#GetPeerRequester">GetPeerRequester</a></li><li><a href="global.html#Interceptor">Interceptor</a></li><li><a href="global.html#InterceptorProvider">InterceptorProvider</a></li><li><a href="global.html#loadPackageDefinition">loadPackageDefinition</a></li><li><a href="global.html#MessageListener">MessageListener</a></li><li><a href="global.html#MessageRequester">MessageRequester</a></li><li><a href="global.html#MetadataListener">MetadataListener</a></li><li><a href="global.html#MetadataRequester">MetadataRequester</a></li><li><a href="global.html#NextCall">NextCall</a></li><li><a href="global.html#StatusListener">StatusListener</a></li>
  54. </ul>
  55. </li>
  56. <li class="dropdown">
  57. <a href="externals.list.html" class="dropdown-toggle" data-toggle="dropdown">Externals<b class="caret"></b></a>
  58. <ul class="dropdown-menu ">
  59. <li><a href="external-Duplex.html">Duplex</a></li><li><a href="external-EventEmitter.html">EventEmitter</a></li><li><a href="external-GoogleCredential.html">GoogleCredential</a></li><li><a href="external-Readable.html">Readable</a></li><li><a href="external-Writable.html">Writable</a></li>
  60. </ul>
  61. </li>
  62. </ul>
  63. <div class="col-sm-3 col-md-3">
  64. <form class="navbar-form" role="search">
  65. <div class="input-group">
  66. <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
  67. <div class="input-group-btn">
  68. <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
  69. </div>
  70. </div>
  71. </form>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="container" id="toc-content">
  77. <div class="row">
  78. <div class="col-md-8">
  79. <div id="main">
  80. <h1 class="page-title">Class: Channel</h1>
  81. <section>
  82. <header>
  83. <h2>
  84. <span class="ancestors"><a href="grpc.html">grpc</a>.</span>
  85. Channel
  86. </h2>
  87. </header>
  88. <article>
  89. <div class="container-overview">
  90. <hr>
  91. <dt>
  92. <h4 class="name" id="Channel"><span class="type-signature"></span>new Channel(target, credentials, options)</h4>
  93. </dt>
  94. <dd>
  95. <div class="description">
  96. <p>This constructor API is almost identical to the Client constructor,
  97. except that some of the options for the Client constructor are not valid
  98. here.</p>
  99. </div>
  100. <h5>Parameters:</h5>
  101. <table class="params table table-striped">
  102. <thead>
  103. <tr>
  104. <th>Name</th>
  105. <th>Type</th>
  106. <th class="last">Description</th>
  107. </tr>
  108. </thead>
  109. <tbody>
  110. <tr>
  111. <td class="name"><code>target</code></td>
  112. <td class="type">
  113. <span class="param-type">string</span>
  114. </td>
  115. <td class="description last"><p>The address of the server to connect to</p></td>
  116. </tr>
  117. <tr>
  118. <td class="name"><code>credentials</code></td>
  119. <td class="type">
  120. <span class="param-type">grpc.ChannelCredentials</span>
  121. </td>
  122. <td class="description last"><p>Channel credentials to use when connecting</p></td>
  123. </tr>
  124. <tr>
  125. <td class="name"><code>options</code></td>
  126. <td class="type">
  127. <span class="param-type"><a href="grpc.html#~ChannelOptions">grpc~ChannelOptions</a></span>
  128. </td>
  129. <td class="description last"><p>A map of channel options that will be passed to the core</p></td>
  130. </tr>
  131. </tbody>
  132. </table>
  133. <dl class="details">
  134. </dl>
  135. </dd>
  136. </div>
  137. <h3 class="subsection-title">Methods</h3>
  138. <dl>
  139. <hr>
  140. <dt>
  141. <h4 class="name" id="close"><span class="type-signature"></span>close()</h4>
  142. </dt>
  143. <dd>
  144. <div class="description">
  145. <p>Close the channel. This has the same functionality as the existing grpc.Client#close</p>
  146. </div>
  147. <dl class="details">
  148. </dl>
  149. </dd>
  150. <hr>
  151. <dt>
  152. <h4 class="name" id="createCall"><span class="type-signature"></span>createCall(method, deadline, host, parentCall, propagateFlags)</h4>
  153. </dt>
  154. <dd>
  155. <div class="description">
  156. <p>Create a call object. Call is an opaque type used by the <a href="grpc.Client.html">grpc.Client</a>
  157. and <a href="grpc.Server.html">grpc.Server</a> classes. This function is called by the gRPC library
  158. when starting a request. Implementers should return an instance of Call that
  159. is returned from calling createCall on an instance of the provided Channel
  160. class.</p>
  161. </div>
  162. <h5>Parameters:</h5>
  163. <table class="params table table-striped">
  164. <thead>
  165. <tr>
  166. <th>Name</th>
  167. <th>Type</th>
  168. <th class="last">Description</th>
  169. </tr>
  170. </thead>
  171. <tbody>
  172. <tr>
  173. <td class="name"><code>method</code></td>
  174. <td class="type">
  175. <span class="param-type">string</span>
  176. </td>
  177. <td class="description last"><p>The full method string to request</p></td>
  178. </tr>
  179. <tr>
  180. <td class="name"><code>deadline</code></td>
  181. <td class="type">
  182. <span class="param-type"><a href="grpc.html#~Deadline">grpc~Deadline</a></span>
  183. </td>
  184. <td class="description last"><p>The call deadline</p></td>
  185. </tr>
  186. <tr>
  187. <td class="name"><code>host</code></td>
  188. <td class="type">
  189. <span class="param-type">string</span>
  190. |
  191. <span class="param-type">null</span>
  192. </td>
  193. <td class="description last"><p>A host string override for making the request</p></td>
  194. </tr>
  195. <tr>
  196. <td class="name"><code>parentCall</code></td>
  197. <td class="type">
  198. <span class="param-type"><a href="grpc-Call.html">grpc~Call</a></span>
  199. |
  200. <span class="param-type">null</span>
  201. </td>
  202. <td class="description last"><p>A server call to propagate some
  203. information from</p></td>
  204. </tr>
  205. <tr>
  206. <td class="name"><code>propagateFlags</code></td>
  207. <td class="type">
  208. <span class="param-type">number</span>
  209. |
  210. <span class="param-type">null</span>
  211. </td>
  212. <td class="description last"><p>A bitwise combination of elements of
  213. <a href="grpc.html#.propagate">grpc.propagate</a> that indicates what information to propagate
  214. from parentCall</p></td>
  215. </tr>
  216. </tbody>
  217. </table>
  218. <dl class="details">
  219. </dl>
  220. <h5>Returns:</h5>
  221. <dl>
  222. <dt>
  223. Type
  224. </dt>
  225. <dd>
  226. <span class="param-type"><a href="grpc-Call.html">grpc~Call</a></span>
  227. </dd>
  228. </dl>
  229. </dd>
  230. <hr>
  231. <dt>
  232. <h4 class="name" id="getConnectivityState"><span class="type-signature"></span>getConnectivityState(tryToConnect)</h4>
  233. </dt>
  234. <dd>
  235. <div class="description">
  236. <p>Get the channel's current connectivity state.</p>
  237. </div>
  238. <h5>Parameters:</h5>
  239. <table class="params table table-striped">
  240. <thead>
  241. <tr>
  242. <th>Name</th>
  243. <th>Type</th>
  244. <th class="last">Description</th>
  245. </tr>
  246. </thead>
  247. <tbody>
  248. <tr>
  249. <td class="name"><code>tryToConnect</code></td>
  250. <td class="type">
  251. <span class="param-type">boolean</span>
  252. </td>
  253. <td class="description last"><p>If true, the channel will start connecting if it is
  254. idle. Otherwise, idle channels will only start connecting when a
  255. call starts.</p></td>
  256. </tr>
  257. </tbody>
  258. </table>
  259. <dl class="details">
  260. </dl>
  261. <h5>Returns:</h5>
  262. <div class="param-desc">
  263. <p>The current connectivity state</p>
  264. </div>
  265. <dl>
  266. <dt>
  267. Type
  268. </dt>
  269. <dd>
  270. <span class="param-type"><a href="grpc.html#.connectivityState">grpc.connectivityState</a></span>
  271. </dd>
  272. </dl>
  273. </dd>
  274. <hr>
  275. <dt>
  276. <h4 class="name" id="getTarget"><span class="type-signature"></span>getTarget()</h4>
  277. </dt>
  278. <dd>
  279. <div class="description">
  280. <p>Return the target that this channel connects to</p>
  281. </div>
  282. <dl class="details">
  283. </dl>
  284. <h5>Returns:</h5>
  285. <div class="param-desc">
  286. <p>The target</p>
  287. </div>
  288. <dl>
  289. <dt>
  290. Type
  291. </dt>
  292. <dd>
  293. <span class="param-type">string</span>
  294. </dd>
  295. </dl>
  296. </dd>
  297. <hr>
  298. <dt>
  299. <h4 class="name" id="watchConnectivityState"><span class="type-signature"></span>watchConnectivityState(currentState, deadline, callback)</h4>
  300. </dt>
  301. <dd>
  302. <div class="description">
  303. <p>Watch for connectivity state changes.</p>
  304. </div>
  305. <h5>Parameters:</h5>
  306. <table class="params table table-striped">
  307. <thead>
  308. <tr>
  309. <th>Name</th>
  310. <th>Type</th>
  311. <th class="last">Description</th>
  312. </tr>
  313. </thead>
  314. <tbody>
  315. <tr>
  316. <td class="name"><code>currentState</code></td>
  317. <td class="type">
  318. <span class="param-type">grpc.ConnectivityState</span>
  319. </td>
  320. <td class="description last"><p>The state to watch for
  321. transitions from. This should always be populated by calling
  322. getConnectivityState immediately before.</p></td>
  323. </tr>
  324. <tr>
  325. <td class="name"><code>deadline</code></td>
  326. <td class="type">
  327. <span class="param-type"><a href="grpc.html#~Deadline">grpc~Deadline</a></span>
  328. </td>
  329. <td class="description last"><p>A deadline for waiting for a state change</p></td>
  330. </tr>
  331. <tr>
  332. <td class="name"><code>callback</code></td>
  333. <td class="type">
  334. <span class="param-type"><a href="grpc.Channel.html#~watchConnectivityStateCallback">grpc.Channel~watchConnectivityStateCallback</a></span>
  335. </td>
  336. <td class="description last"><p>Called with no
  337. error when the state changes, or with an error if the deadline passes
  338. without a state change</p></td>
  339. </tr>
  340. </tbody>
  341. </table>
  342. <dl class="details">
  343. </dl>
  344. </dd>
  345. </dl>
  346. <h3 class="subsection-title">Type Definitions</h3>
  347. <dl>
  348. <hr>
  349. <dt>
  350. <h4 class="name" id="~watchConnectivityStateCallback"><span class="type-signature"></span>watchConnectivityStateCallback(error)</h4>
  351. </dt>
  352. <dd>
  353. <h5>Parameters:</h5>
  354. <table class="params table table-striped">
  355. <thead>
  356. <tr>
  357. <th>Name</th>
  358. <th>Type</th>
  359. <th>Argument</th>
  360. <th class="last">Description</th>
  361. </tr>
  362. </thead>
  363. <tbody>
  364. <tr>
  365. <td class="name"><code>error</code></td>
  366. <td class="type">
  367. <span class="param-type">Error</span>
  368. </td>
  369. <td class="attributes">
  370. &lt;nullable><br>
  371. </td>
  372. <td class="description last"></td>
  373. </tr>
  374. </tbody>
  375. </table>
  376. <dl class="details">
  377. </dl>
  378. </dd>
  379. </dl>
  380. </article>
  381. </section>
  382. </div>
  383. </div>
  384. <div class="clearfix"></div>
  385. <div class="col-md-3">
  386. <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
  387. </div>
  388. </div>
  389. </div>
  390. <div class="modal fade" id="searchResults">
  391. <div class="modal-dialog">
  392. <div class="modal-content">
  393. <div class="modal-header">
  394. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  395. <h4 class="modal-title">Search results</h4>
  396. </div>
  397. <div class="modal-body"></div>
  398. <div class="modal-footer">
  399. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  400. </div>
  401. </div><!-- /.modal-content -->
  402. </div><!-- /.modal-dialog -->
  403. </div>
  404. <footer>
  405. <span class="jsdoc-message">
  406. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
  407. on 2018-11-29T11:16:28-08:00
  408. using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
  409. </span>
  410. </footer>
  411. <script src="scripts/docstrap.lib.js"></script>
  412. <script src="scripts/toc.js"></script>
  413. <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
  414. <script>
  415. $( function () {
  416. $( "[id*='$']" ).each( function () {
  417. var $this = $( this );
  418. $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
  419. } );
  420. $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
  421. var $this = $( this );
  422. var example = $this.find( "code" );
  423. exampleText = example.html();
  424. var lang = /{@lang (.*?)}/.exec( exampleText );
  425. if ( lang && lang[1] ) {
  426. exampleText = exampleText.replace( lang[0], "" );
  427. example.html( exampleText );
  428. lang = lang[1];
  429. } else {
  430. var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
  431. lang = langClassMatch ? langClassMatch[1] : "javascript";
  432. }
  433. if ( lang ) {
  434. $this
  435. .addClass( "sunlight-highlight-" + lang )
  436. .addClass( "linenums" )
  437. .html( example.html() );
  438. }
  439. } );
  440. Sunlight.highlightAll( {
  441. lineNumbers : false,
  442. showMenu : true,
  443. enableDoclinks : true
  444. } );
  445. $.catchAnchorLinks( {
  446. navbarOffset: 10
  447. } );
  448. $( "#toc" ).toc( {
  449. anchorName : function ( i, heading, prefix ) {
  450. return $( heading ).attr( "id" ) || ( prefix + i );
  451. },
  452. selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
  453. showAndHide : false,
  454. smoothScrolling: true
  455. } );
  456. $( "#main span[id^='toc']" ).addClass( "toc-shim" );
  457. $( '.dropdown-toggle' ).dropdown();
  458. $( "table" ).each( function () {
  459. var $this = $( this );
  460. $this.addClass('table');
  461. } );
  462. } );
  463. </script>
  464. <!--Navigation and Symbol Display-->
  465. <!--Google Analytics-->
  466. <script type="text/javascript">
  467. $(document).ready(function() {
  468. SearcherDisplay.init();
  469. });
  470. </script>
  471. </body>
  472. </html>