Module vibe.http.websockets
WebSocket
support and fallbacks for older browsers.
Examples
void handleConn(WebSocket sock) { // simple echo server while( sock.connected ){ auto msg = sock.receive(); sock.send(msg); } } static this { auto router = new UrlRouter; router.get("/websocket", handleWebSockets(&handleConn)) // Start HTTP server... }
Functions
Function name | Description |
---|---|
handleWebSockets |
Classes
Class name | Description |
---|---|
IncommingWebSocketMessage | |
OutgoingWebSocketMessage | |
WebSocket |
Structs
Struct name | Description |
---|---|
Frame |
Enums
Enum name | Description |
---|---|
FrameOpcode |
Authors
Jan Krüger
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.