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

x/deno_sonic/lib/client.ts>SonicClient

Sonic search engine driver for Deno
Latest
class SonicClient
import { SonicClient } from "https://deno.land/x/deno_sonic@0.1.0/lib/client.ts";

Constructors

new
SonicClient(mode: ChannelMode)

Properties

cmdMaxBytes: number
conn: Deno.Conn | null
debug: (...params: unknown[]) => unknown

Methods

private
startLoop()
protected
addEvent(event: Event)
protected
getLastEvent(): Event | null
protected
rejectEvent(event: Event, value: Error)
protected
resolveEvent(event: Event, value: string)
once(startWith: string): Promise<string>
write(data: string)