def hs.fail
import bend-kit-websocket@0.4.0.0/websocket.bend as Websocketimport Base
843def hs.fail(sock: Socket, +tls: Bool, e: U32 & String) -> IO(Result<&1, &1, U32 & String, Conn>):
844 do IO<Result<&1, &1, U32 & String, Conn>>:
845 io.close(tls, sock)
846 return Fail{e}