From e67a57cb68523c0f377c285ddc51807513210545 Mon Sep 17 00:00:00 2001 From: Marcus Agehall <agehall@gmail.com> Date: Sat, 21 May 2016 11:49:57 +0200 Subject: [PATCH] Better typing in functionn signatures. Patch from frigolit@frigolit.net --- lib/modules/Protocols.pmod/WebSocket.pmod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/Protocols.pmod/WebSocket.pmod b/lib/modules/Protocols.pmod/WebSocket.pmod index 140af116c8..9c2c821a8a 100644 --- a/lib/modules/Protocols.pmod/WebSocket.pmod +++ b/lib/modules/Protocols.pmod/WebSocket.pmod @@ -310,7 +310,7 @@ class Connection { } //! Create a WebSocket server out of the given Stdio.File-like object - protected variant void create(Stdio.File f) { + protected variant void create(Stdio.File|SSL.File f) { state = CONNECTING; parser = Parser(); stream = f; @@ -675,7 +675,7 @@ class SSLPort { protected void create(function(Protocols.HTTP.Server.Request:void) http_cb, function(array(string), Request:void)|void ws_cb, void|int portno, void|string interface, - void|string key, void|string|array certificate) { + void|string|Crypto.Sign.State key, void|string|array(string) certificate) { ::create(http_cb, portno, interface, key, certificate); -- GitLab