MCPcopy Create free account
hub / github.com/devfeel/dotweb / WebSocket

Method WebSocket

server.go:379–381  ·  view source on GitHub ↗

WebSocket is a shortcut for router.WebSocket(path, handle)

(path string, handle HttpHandle)

Source from the content-addressed store, hash-verified

377
378// WebSocket is a shortcut for router.WebSocket(path, handle)
379func (server *HttpServer) WebSocket(path string, handle HttpHandle) {
380 server.Router().WebSocket(path, handle)
381}
382
383// Group create new group with current HttpServer
384func (server *HttpServer) Group(prefix string) Group {

Callers

nothing calls this directly

Calls 2

RouterMethod · 0.95
WebSocketMethod · 0.65

Tested by

no test coverage detected