File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -834,6 +834,9 @@ active socket in the event system. If the socket is already `unref`ed calling
834
834
added: v0.1.90
835
835
-->
836
836
837
+ * ` data ` {string|Buffer|Uint8Array}
838
+ * ` encoding ` {string} Only used when data is ` string ` . ** Default:** ` utf8 ` .
839
+ * ` callback ` {Function}
837
840
* Returns: {boolean}
838
841
839
842
Sends data on the socket. The second parameter specifies the encoding in the
@@ -846,6 +849,9 @@ buffer. Returns `false` if all or part of the data was queued in user memory.
846
849
The optional ` callback ` parameter will be executed when the data is finally
847
850
written out - this may not be immediately.
848
851
852
+ See Writable stream [ ` write() ` ] [ stream_writable_write ] method for more
853
+ information.
854
+
849
855
## net.connect()
850
856
851
857
Aliases to
@@ -1149,5 +1155,6 @@ Returns `true` if input is a version 6 IP address, otherwise returns `false`.
1149
1155
[ duplex stream ] : stream.html#stream_class_stream_duplex
1150
1156
[ half-closed ] : https://tools.ietf.org/html/rfc1122
1151
1157
[ socket(7) ] : http://man7.org/linux/man-pages/man7/socket.7.html
1158
+ [ stream_writable_write ] : stream.html#stream_writable_write_chunk_encoding_callback
1152
1159
[ unspecified IPv4 address ] : https://en.wikipedia.org/wiki/0.0.0.0
1153
1160
[ unspecified IPv6 address ] : https://en.wikipedia.org/wiki/IPv6_address#Unspecified_address
You can’t perform that action at this time.
0 commit comments