Function handleWebSockets
Returns a HTTP request handler that establishes web socket conections.
Prototypes
void delegate(HTTPServerRequest, HTTPServerResponse) handleWebSockets( void delegate(scope WebSocket) on_handshake ); void delegate(HTTPServerRequest, HTTPServerResponse) handleWebSockets( void function(scope WebSocket) on_handshake ); void delegate(HTTPServerRequest, HTTPServerResponse) handleWebSockets( void delegate(WebSocket) on_handshake ); void delegate(HTTPServerRequest, HTTPServerResponse) handleWebSockets( void function(WebSocket) on_handshake );
Note
The overloads taking non-scoped callback parameters are scheduled to be deprecated soon.
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.