Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sockets/mod.ts>Server#handleMessageAsString

A WebSocket library for Deno.
Latest
method Server.prototype.handleMessageAsString
import { Server } from "https://deno.land/x/sockets@v0.5.0/mod.ts";

Handle a string message sent by the socket client.

Parameters

client: Client
  • The client instance.
message: string
  • The message the client sent.

Returns

Promise<void>