WebSocket Middleware/Responder for Slimane
import WebSocketServer
import Slimane
let app = Slimane()
let wsServer = WebSocketServer { socket, request in
socket.onText { text in
socket.send("PONG")
}
}
app.use(wsServer)
try! app.listen()
WS is released under the MIT license. See LICENSE for details.