<!DOCTYPE html><htmlclass="default"><head><metacharSet="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>TcpSocketConnectOpts | play-dl</title><metaname="description"content="Documentation for play-dl"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptasyncsrc="../assets/search.js"id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme")||"os")</script><header><divclass="tsd-page-toolbar"><divclass="container"><divclass="table-wrap"><divclass="table-cell"id="tsd-search"data-base=".."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget search no-caption">Search</label><inputtype="text"id="tsd-search-field"/></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">play-dl</a></div><divclass="table-cell"id="tsd-widgets"><divid="tsd-filter"><ahref="#"class="tsd-widget options no-caption"data-toggle="options">Options</a><divclass="tsd-filter-group"><divclass="tsd-select"id="tsd-filter-visibility"><spanclass="tsd-select-label">All</span><ulclass="tsd-select-list"><lidata-value="public">Public</li><lidata-value="protected">Public/Protected</li><lidata-value="private"class="selected">All</li></ul></div><inputtype="checkbox"id="tsd-filter-inherited"checked/><labelclass="tsd-widget"for="tsd-filter-inherited">Inherited</label><inputtype="checkbox"id="tsd-filter-externals"checked/><labelclass="tsd-widget"for="tsd-filter-externals">Externals</label></div></div><ahref="#"class="tsd-widget menu no-caption"data-toggle="menu">Menu</a></div></div></div></div><divclass="tsd-page-title"><divclass="container"><ulclass="tsd-breadcrumb"><li><ahref="../modules.html">play-dl</a></li><li><ahref="../modules/_internal_.html"><internal></a></li><li><ahref="_internal_.TcpSocketConnectOpts.html">TcpSocketConnectOpts</a></li></ul><h1>Interface TcpSocketConnectOpts</h1></div></div></header><divclass="container container-main"><divclass="row"><divclass="col-8 col-content"><sectionclass="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ulclass="tsd-hierarchy"><li><ahref="_internal_.ConnectOpts.html"class="tsd-signature-type"data-tsd-kind="Interface">ConnectOpts</a><ulclass="tsd-hierarchy"><li><spanclass="target">TcpSocketConnectOpts</span></li></ul></li></ul></section><sectionclass="tsd-panel-group tsd-index-group"><h2>Index</h2><sectionclass="tsd-panel tsd-index-panel"><divclass="tsd-index-content"><sectionclass="tsd-index-section tsd-is-external"><h3>Properties</h3><ulclass="tsd-index-list"><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><ahref="_internal_.TcpSocketConnectOpts.html#family"class="tsd-kind-icon">family</a></li><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><ahref="_internal_.TcpSocketConnectOpts.html#hints"class="tsd-kind-icon">hints</a></li><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><ahref="_internal_.TcpSocketConnectOpts.html#host"class="tsd-kind-icon">host</a></li><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><ahref="_internal_.TcpSocketConnectOpts.html#localAddress"class="tsd-kind-icon">local<wbr/>Address</a></li><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><ahref="_internal_.TcpSocketConnectOpts.html#localPort"class="tsd-kind-icon">local<wbr/>Port</a></li><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><ahref="_internal_.TcpSocketConnectOpts.html#lookup"class="tsd-kind-icon">lookup</a></li><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited tsd-is-external"><ahref="_internal_.TcpSocketConnectOpts.html#onread"class="tsd-kind-icon">onread</a></li><liclass="tsd-kind-property tsd-parent-kind-interface tsd-is-external"><ahref="_internal_
<p>If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket.
Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will
still be emitted as normal and methods like pause() and resume() will also behave as expected.</p>