Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function StringCodec
import { StringCodec } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";

Returns a Codec for encoding strings to a message payload and decoding message payloads into strings.

Returns

Codec<string>