Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/node:net/Socket/endMendmethod
net.Socket.endend(callback?: () => void): this;Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data.See writable.end() for further details.@param callbackOptional callback for when the socket is finished.@returnsThe socket itself.end(buffer: string | Uint8ArrayArrayBufferLike>,callback?: () => void): this;Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data.See writable.end() for further details.@param callbackOptional callback for when the socket is finished.@returnsThe socket itself.end(str: string | Uint8ArrayArrayBufferLike>,encoding?: BufferEncoding,callback?: () => void): this;Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data.See writable.end() for further details.@param encodingOnly used when data is string.@param callbackOptional callback for when the socket is finished.@returnsThe socket itself.Referenced typesclass Uint8ArrayTArrayBuffer extends ArrayBufferLike = ArrayBufferLike>A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.readonly [Symbol.toStringTag]: 'Uint8Array'readonly buffer: TArrayBufferThe ArrayBuffer instance referenced by the array.readonly byteLength: numberThe length in bytes of the array.readonly byteOffset: numberThe offset in bytes of the array.readonly BYTES_PER_ELEMENT: numberThe size in bytes of each element in the array.readonly length: numberThe length of the array.[Symbol.iterator](): ArrayIteratornumber>;at(index: number): undefined | number;Returns the item located at the specified index.@param indexThe zero-based index of the desired code unit. A negative index will count back from the last item.copyWithin(target: number,start: number,end?: number): this;Returns the this object after copying a section of the array identified by start and end to the same array starting at position target@param targetIf target is negative, it is treated as length+target where length is the length of the array.@param startIf start is negative, it is treated as length+start. If end is negative, it is treated as length+end.@param endIf not specified, length of the this object is used as its default value.entries(): ArrayIterator[number, number]>;Returns an array of key, value pairs for every entry in the arrayevery(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): boolean;Determines whether all the members of an array satisfy the specified test.@param predicateA function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.@param thisArgAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.fill(value: number,start?: number,end?: number): this;Changes all array elements from start to end index to a static value and returns the modified array@param valuevalue to fill array section with@param startindex to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.@param endindex to stop filling the array at. If end is negative, it is treated as length+end.filter(predicate: (value: number, index: number, array: this) => any,thisArg?: any): Uint8ArrayArrayBuffer>;Returns the elements of an array that meet the condition specified in a callback function.@param predicateA function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.@param thisArgAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.find(predicate: (value: number, index: number, obj: this) => boolean,thisArg?: any): undefined | number;Returns the value of the first element in the array where predicate is true, and undefined otherwise.@param predicatefind calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.findIndex(predicate: (value: number, index: number, obj: this) => boolean,thisArg?: any): number;Returns the index of the first element in the array where predicate is true, and -1 otherwise.@param predicatefind calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.findLastS extends number>(predicate: (value: number, index: number, array: this) => value is S,thisArg?: any): undefined | S;Returns the value of the last element in the array where predicate is true, and undefined otherwise.@param predicatefindLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.findLast(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): undefined | number;findLastIndex(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): number;Returns the index of the last element in the array where predicate is true, and -1 otherwise.@param predicatefindLastIndex calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.@param thisArgIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.forEach(callbackfn: (value: number, index: number, array: this) => void,thisArg?: any): void;Performs the specified action for each element in an array.@param callbackfnA function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.@param thisArgAn object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.includes(searchElement: number,fromIndex?: number): boolean;Determines whether an array includes a certain element, returning true or false as appropriate.@param searchElementThe element to search for.@param fromIndexThe position in this array at which to begin searching for searchElement.indexOf(searchElement: number,fromIndex?: number): number;Returns the index of the first occurrence of a value in an array.@param searchElementThe value to locate in the array.@param fromIndexThe array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.join(separator?: string): string;Adds all the elements of an array separated by the specified separator string.@param separatorA string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.keys(): ArrayIteratornumber>;Returns an list of keys in the arraylastIndexOf(searchElement: number,fromIndex?: number): number;Returns the index of the last occurrence of a value in an array.@param searchElementThe value to locate in the array.@param fromIndexThe array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.map(callbackfn: (value: number, index: number, array: this) => number,thisArg?: any): Uint8ArrayArrayBuffer>;Calls a defined callback function on each element of an array, and returns an array that contains the results.@param callbackfnA function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.@param thisArgAn object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number,initialValue: number): number;reduceU>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U,initialValue: U): U;Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.@param initialValueIf initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number,initialValue: number): number;reduceRightU>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U,initialValue: U): U;Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.@param callbackfnA function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.@param initialValueIf initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.reverse(): this;Reverses the elements in an Array.set(array: ArrayLikenumber>,offset?: number): void;Sets a value or an array of values.@param arrayA typed or untyped array of values to set.@param offsetThe index in the current array at which the values are to be written.setFromBase64(base64: string,offset?: number): { read: number; written: number };Set the contents of the Uint8Array from a base64 encoded string@param base64The base64 encoded string to decode into the array@param offsetOptional starting index to begin setting the decoded bytes (default: 0)setFromHex(hex: string): { read: number; written: number };Set the contents of the Uint8Array from a hex encoded string@param hexThe hex encoded string to decode into the array. The string must have an even number of characters, be valid hexadecimal characters and contain no whitespace.slice(start?: number,end?: number): Uint8ArrayArrayBuffer>;Returns a section of an array.@param startThe beginning of the specified portion of the array.@param endThe end of the specified portion of the array. This is exclusive of the element at the index 'end'.some(predicate: (value: number, index: number, array: this) => unknown,thisArg?: any): boolean;Determines whether the specified callback function returns true for any element of an array.@param predicateA function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.@param thisArgAn object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.sort(compareFn?: (a: number, b: number) => number): this;Sorts an array.@param compareFnFunction used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise. If omitted, the elements are sorted in ascending order.[11,2,22,1].sort((a, b) => a - b) subarray(begin?: number,end?: number): Uint8ArrayTArrayBuffer>;Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.@param beginThe index of the beginning of the array.@param endThe index of the end of the array.toBase64(options?: { alphabet: 'base64' | 'base64url'; omitPadding: boolean }): string;Convert the Uint8Array to a base64 encoded string@returnsThe base64 encoded string representation of the Uint8ArraytoHex(): string;Convert the Uint8Array to a hex encoded string@returnsThe hex encoded string representation of the Uint8ArraytoLocaleString(): string;Converts a number to a string by using the current locale.toLocaleString(locales: string | string[],options?: NumberFormatOptions): string;toReversed(): Uint8ArrayArrayBuffer>;Copies the array and returns the copy with the elements in reverse order.toSorted(compareFn?: (a: number, b: number) => number): Uint8ArrayArrayBuffer>;Copies and sorts the array.@param compareFnFunction used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they're equal, and a positive value otherwise. If omitted, the elements are sorted in ascending order.const myNums = Uint8Array.from([11, 2, 22, 1]); myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] toString(): string;Returns a string representation of an array.valueOf(): this;Returns the primitive value of the specified object.values(): ArrayIteratornumber>;Returns an list of values in the arraywith(index: number,value: number): Uint8ArrayArrayBuffer>;Copies the array and inserts the given number at the provided index.@param indexThe index of the value to overwrite. If the index is negative, then it replaces from the end of the array.@param valueThe value to insert into the copied array.@returnsA copy of the original array with the inserted value.Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San FranciscoWe're hiring →智能索引记录
-
2026-03-02 12:59:06
视频影音
成功
标题:18岁太奶在线训孙第65集河马短剧_在线播放[高清流畅]_爽文短剧
简介:爽文短剧_18岁太奶在线训孙剧情介绍:18岁太奶在线训孙是由内详执导,内详等人主演的,于2025年上映,该都市讲述的是暂
-
2026-03-02 16:09:12
综合导航
成功
标题:关于四季的作文:四季的美_450字_作文网
简介:美是一位莅临人间的天使,它一会儿隐遁在每个人的心灵,一会儿掩映在大自然的身边,正如罗丹曾经说过:生活不是缺少美,而是缺少
-
2026-03-02 15:09:35
综合导航
成功
标题:DevSecOps at Systems Planning & Analysis - SPA
简介:DevSecOps at Systems Planning & Analysis. Building resilient
-
2026-03-02 22:20:41
综合导航
成功
标题:从傻柱开始穿越全文阅读(三胖一家),从傻柱开始穿越的结局_从傻柱开始穿越全本,完结,全集阅读,无弹窗广告_小说在线阅读,新笔趣阁(56xu.com)
简介:新笔趣阁免费提供三胖一家写的科幻未来经典作品从傻柱开始穿越,从傻柱开始穿越全文阅读,从傻柱开始穿越完结,全本,全集阅读,
-
2026-03-02 19:58:20
综合导航
成功
标题:Cryptocurrency and Stock Market Trends Strategy increased its holdings by over 10,000 BTC, bringing its total holdings to over 660,000 BTC; Bitmine’s total assets reached $13.2 billion, with ETH holdings exceeding 3.86 million BTC (December 9th). Bee Network
简介:Editor
-
2026-03-02 13:04:03
综合导航
成功
标题:Be Part of SIA Careers Singapore Airlines
简介:Top reasons why you should join Singapore Airlines.
-
2026-03-02 14:02:57
教育培训
成功
标题:捉蚊趣事作文
简介:在学习、工作乃至生活中,大家都有写作文的经历,对作文很是熟悉吧,借助作文人们可以实现文化交流的目的。一篇什么样的作文才能
-
2026-03-02 22:25:19
综合导航
成功
标题:監査およびブローダーアシュアランスサービス(BAS) PwC Japanグループ
简介:PwCネットワークの監査手法と最新技術により世界水準の高品質な監査業務を推進するとともに、内部統制、ガバナンス、サイバー
-
2026-03-02 13:51:56
综合导航
成功
标题:Real Estate Wealth Expo - May 6-7 in Atlanta [Archive] - Toyota MR2 Message Board
简介:http://www.learningannex.com/realestate/realestate.taf?Cours
-
2026-03-02 12:20:09
新闻资讯
成功
标题:【新农村住宅设计图二层家居】_别墅设计网
简介:新农村住宅设计图二层家居:为您提供最好的新农村住宅设计图二层相关资讯及内容!了解新农村住宅设计图二层怎么样知识,尽在别墅
-
2026-03-02 15:56:59
综合导航
成功
标题:Регистрация доменов РФ/RU у аккредитованного регистратора доменов Недорогой хостинг и дешевые домены Рег.ру
简介:Рег.ру - Российский хостинг-провайдер и регистратор доменов.
-
2026-03-02 20:08:01
数码科技
成功
标题:北京孤凡电子商务有限公司
简介:北京孤凡电子商务有限公司专注于为客户带来卓越的产品和服务,致力于满足每一位客户的独特需求。我们深知,只有提供高品质的产品
-
2026-03-02 10:49:40
综合导航
成功
标题:经典语录:最大的爱,原是原谅和放生-励志一生
简介:经典语录:最大的爱,原是原谅和放生_经典语录:最大的爱,原是原谅和放生 1、有些事,不用翻箱倒柜,一直在眼前。 2、
-
2026-03-02 15:39:01
综合导航
成功
标题:Trouba Cuts the Lead in Half Anaheim Ducks
简介:Jacob Trouba sends the puck through traffic to get Anaheim w
-
2026-03-02 10:45:54
综合导航
成功
标题:平成27年3月期 第1四半期決算について コネクタ メーカー JAE 日本航空電子工業
简介:日本航空電子工業株式会社(JAE)の平成27年3月期 第1四半期決算についてがご覧いただけます。
-
2026-03-02 15:46:19
金融理财
成功
标题:DORA 対応に向けた10の重点課題 :デジタル・オペレーショナル・レジリエンスの要素統合 PwC Japanグループ
简介:オペレーショナルレジリエンスやサイバーレジリエンス、サードパーティリスク管理の必要性が高まる中、DORA規制が2025年
-
2026-03-02 16:20:31
综合导航
成功
标题:å¤é¸£çæ¼é³_å¤é¸£çææ_å¤é¸£çç¹ä½_è¯ç»ç½
简介:è¯ç»ç½å¤é¸£é¢é,ä»ç»å¤é¸£,å¤é¸£çæ¼é³,å¤é¸£æ¯
-
2026-03-02 10:58:58
综合导航
成功
标题:OutgoingMessage.shouldKeepAlive property Node.js http module Bun
简介:API documentation for property node:http.OutgoingMessage.sho
-
2026-03-02 10:38:15
综合导航
成功
标题:JJMICROELECTRONICS
简介:JJM products are developed to meet a wide range of applicati
-
2026-03-02 22:08:44
综合导航
成功
标题:第1276章 仙石草原_西门仙族_道心长青_新笔趣阁(56xu.com)
简介:西门仙族无防盗章节,作者道心长青,第1276章 仙石草原内容简要:白皇是一头仙皇初期的白虎,实力堪比普通的仙皇中期妖族,
-
2026-03-02 13:03:26
图片素材
成功
标题:初三演讲稿作文150字 初三150字演讲稿作文大全-作文网
简介:作文网优秀初三演讲稿150字作文大全,包含初三演讲稿150字作文素材,初三演讲稿150字作文题目、美文范文,作文网原创名
-
2026-03-02 20:18:59
综合导航
成功
标题:109997-Solution Architect
简介:Solution Architect Job Announcement body {
-
2026-03-02 10:58:59
电商商城
成功
标题:思锐三脚架碳纤维价格报价行情 - 京东
简介:京东是国内专业的思锐三脚架碳纤维网上购物商城,本频道提供思锐三脚架碳纤维价格表,思锐三脚架碳纤维报价行情、思锐三脚架碳纤
-
2026-03-02 12:39:59
实用工具
成功
标题:吉吉算命网 - 第38页
简介:吉吉算命网解读周易、八字、风水、面相、手相等国学文化,提供八字排盘、五行喜忌、大运流年分析,提供周易六爻、姓名测试、星座
-
2026-03-02 12:31:09
综合导航
成功
标题:Keithley 2281S Battery Simulator Addresses IoT Device Testing Challenges Tektronix
简介:Keithley 2281S Battery Simulator Addresses IoT Device Testin
-
2026-03-02 12:48:37
教育培训
成功
标题:(精华)可爱的小学作文
简介:无论在学习、工作或是生活中,许多人都写过作文吧,写作文可以锻炼我们的独处习惯,让自己的心静下来,思考自己未来的方向。还是
-
2026-03-02 12:31:18
综合导航
成功
标题:DMCA - NS6.com
简介:请仔细阅读我们的 DMCA 政策。
-
2026-03-02 20:13:49
综合导航
成功
标题:Is building your own Layer 2 public chain the ultimate strategy for Ethereum DAT to increase mNAV? Bee Network
简介:I. What is the Ethereum Treasury Company? The emergence of
-
2026-03-02 12:58:37
教育培训
成功
标题:(推荐)珍惜幸福作文
简介:在学习、工作乃至生活中,许多人都写过作文吧,作文要求篇章结构完整,一定要避免无结尾作文的出现。为了让您在写作文时更加简单
-
2026-03-02 10:35:43
综合导航
成功
标题:Milene Carvalho EY Americas Enterprise Risk Practice Leader EY - MENA
简介:<p>Milene leads the Americas Enterprise Risk Practice. Durin