Skip to content

Commit 4ab0f5e

Browse files
committed
Fix AsyncSocket info in alpha SPEC
1 parent f961f9f commit 4ab0f5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SPEC-alpha.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,5 +287,9 @@ It *may* optionally satisfy the `ring.websocket/AsyncSocket` protocol:
287287

288288
```clojure
289289
(defprotocol AsyncSocket
290-
(-send-async [socket message callback]))
290+
(-send-async [socket message succeed fail]))
291291
```
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

Comments
 (0)