Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mysql2/deps.ts>Socket#end

MySQL client for Deno with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression much more
Latest
method Socket.prototype.end
import { Socket } from "https://deno.land/x/mysql2@v1.0.6/deps.ts";

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.

Parameters

optional
cb: () => void

Only used when data is string.

Returns

this

The socket itself.

Parameters

buffer: Uint8Array | string
optional
cb: () => void

Parameters

data: Uint8Array | string
optional
encoding: Encodings
optional
cb: () => void