Retracted: lots of mangled things, sorry
package
Version:
v1.2.3
Opens a new window with list of versions in this module.
Published: Nov 20, 2024
License: Unlicense
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
WS = B("ws://")
WSS = B("wss://")
HTTP = B("http://")
HTTPS = B("https://")
)
Msg constructs a properly formatted message with a machine readable prefix for OK and CLOSED
envelopes.
func URL[V S | B](v V) (b B)
URL normalizes the URL
- Adds wss:// to addresses without a port, or with 443 that have no protocol prefix
- Adds ws:// to addresses with any other port
- Converts http/s to ws/s
Source Files
¶
Click to show internal directories.
Click to hide internal directories.