vibe.d beta banner
get vibe.d
0.8.0

Asynchronous I/O that doesn’t get in your way, written in D

handleWebSockets - multiple declarations

Function handleWebSockets

Returns a HTTP request handler that establishes web socket conections.

void delegate(scope HTTPServerRequest, scope HTTPServerResponse) handleWebSockets (
  @safe void function(scope WebSocket) on_handshake
) @safe @safe;

void delegate(scope HTTPServerRequest, scope HTTPServerResponse) handleWebSockets (
  @safe void delegate(scope WebSocket) on_handshake
) @safe @safe;

Function handleWebSockets

Scheduled for deprecation - use a @safe callback instead.

void delegate(scope HTTPServerRequest, scope HTTPServerResponse) handleWebSockets (
  void delegate(scope WebSocket) on_handshake
) @safe;

void delegate(scope HTTPServerRequest, scope HTTPServerResponse) handleWebSockets (
  void function(scope WebSocket) on_handshake
) @safe;
Authors

Jan Krüger

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.