Skip to main content
Module

x/texa/mod.ts>WebSocket#close

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
method WebSocket.prototype.close
Re-export
import { WebSocket } from "https://deno.land/x/texa@0.8.1/mod.ts";

Gracefully attempt to close the connection.

Parameters

optional
code: number

The status code.

optional
reason: string

The reason this websocket is closing.