Sources/App/configure.swift+6
@@ -54,6 +54,12 @@ public func configure(_ config: inout Config, _ env: inout Environment, _ servic
5454 }
5555 }
5656
57+ ws.get("test") { (ws, req) in
58+ ws.onText({ (ws, text) in
59+ ws.send("pong")
60+ })
61+ }
62+
5763 services.register(ws, as: WebSocketServer.self)
5864
5965}