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

x/websocket/example/deps.ts>TextProtoReader#readLine

🦕 A simple WebSocket library like ws of node.js library for deno
Latest
method TextProtoReader.prototype.readLine
import { TextProtoReader } from "https://deno.land/x/websocket@v0.1.4/example/deps.ts";

readLine() reads a single line from the TextProtoReader, eliding the final \n or \r\n from the returned string.

Returns

Promise<string | null>