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

x/xdg/vendor/types/deno.d.ts>WebSocket#close

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
method WebSocket.prototype.close
import { WebSocket } from "https://deno.land/x/xdg@v10.3.0/vendor/types/deno.d.ts";

Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.

Parameters

optional
code: number
optional
reason: string