package
0.2.0
Repository: https://github.com/light-bull/lightbull.git
Documentation: pkg.go.dev

# Functions

EnableCors sets the Access-Control-Allow-Origin header to "*".
GetConnectionID gets the websocket connection id from the `X-Lightbull-Connection-Id` header.
NewJWTManager initializes a new JWTManager and prepares the key material.
NewWebsocketClient initalizes a new websocket client and runs the handlers.
ParseJSON reads the body from the HTTP request and tries to deserialize it as JSON.
No description provided by the author
WriteJSON serializes the given struct to JSON and sends it back over the HTTP connection.
No description provided by the author
No description provided by the author

# Structs

JWTManager implements the easy creation and validation of JSON Web Tokens.
WebsocketClient is one client connected via websockets.

# Type aliases

WebsocketHandler is the handler for incoming websocket messages.