Skip to content

replaceUrlProtocol

reference
1 min readUpdated

Kind: Function

Source: src/client/utils.ts

Part of: Client

Signature

ts
function replaceUrlProtocol(urlString: string, protocol: 'ws' | 'http')

Parameters

NameType
urlStringstring
protocol`'ws'

Was this page helpful?

Download as PDF
replaceUrlProtocol — Hono (narrator proof)