Skip to content
Permalink
Browse files

Merge branch 'master' of https://github.com/Juleffel/websocket-server

  • Loading branch information...
Juleffel committed Aug 27, 2018
2 parents 7521d4b + 4614f64 commit c842f10e1dcd5c05ab97c9e4b0eaa7657ed4a43b
Showing with 5 additions and 6 deletions.
  1. +5 −6 README.md
@@ -1,12 +1,12 @@
# WebSocket Server

This is the server side of the websocket connection. This is meant to
be paired with [fentontravers/websocket-client](https://github.com/ftravers/websocket-client).
be paired with [fentontravers/websocket-client](https://github.com/fentontravers/websocket-client).

# Clojars

![](https://clojars.org/fentontravers/websocket-server/latest-version.svg)
<a href="https://clojars.org/juleffel/websocket-server/" target="_blank">![Foo](https://clojars.org/juleffel/websocket-server/latest-version.svg)</a>
# Usage
```clojure
@@ -84,10 +84,9 @@ back.
; json/read-str will be applied before sending data to request-json-handler
; json/write-str will be applied before sending data from request-json-handler
; back on the websocket, or when using (send-all! port data)
; back on the websocket, or when using send-all!
(start-ws-server 8000
:on-receive request-handler-json
:in-fn json/read-str
:out-fn json/write-str)
```
```

0 comments on commit c842f10

Please sign in to comment.
You can’t perform that action at this time.