We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f961f9f commit 4ab0f5eCopy full SHA for 4ab0f5e
SPEC-alpha.md
@@ -287,5 +287,9 @@ It *may* optionally satisfy the `ring.websocket/AsyncSocket` protocol:
287
288
```clojure
289
(defprotocol AsyncSocket
290
- (-send-async [socket message callback]))
+ (-send-async [socket message succeed fail]))
291
```
292
+
293
+Where `succeed` is a callback function that expects zero arguments, and
294
+`fail` is a callback function expecting a single `java.lang.Throwable`
295
+argument.
0 commit comments