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

x/netzo/deno.d.ts>WebSocket#close

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
method WebSocket.prototype.close
import { WebSocket } from "https://deno.land/x/netzo@v0.1.10/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