Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
CORSAllowedOrigins []string
}
Config contains the runtime configuration for the websocket server
func LoadConfig ¶
LoadConfig reads the websocket configuration from app.toml located under the node's home directory
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps the WebSocket handler together with its supporting components.
func NewServer ¶
func NewServer(opts ServerOptions) *Server
NewServer constructs a WebSocket server for the stream module using the provided options.
type ServerOptions ¶
type ServerOptions struct {
ContextDone <-chan struct{}
MethodRegistry *encoding.DynamicRegistry
Registry *types.SubscriptionRegistry
Invoker *types.RouterInvoker
Logger log.Logger
Upgrader *websocket.Upgrader
}
ServerOptions contains the configuration required to build a WebSocket server.
Click to show internal directories.
Click to hide internal directories.