Skip to content

Instantly share code, notes, and snippets.

View jldoubleu's full-sized avatar

Jay W jldoubleu

  • Austin, TX
View GitHub Profile
@jldoubleu
jldoubleu / curlcommandandoutput
Last active June 6, 2019 13:59
sente websocket server example
curl -v -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: localhost:8080" -H "Origin: http://localhost:8080" -H "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" -H "Sec-WebSocket-Version: 13" http://localhost:8080/chsk
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /chsk HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.58.0
> Accept: */*
> Connection: Upgrade:csrf-token-fn nil}
> Upgrade: websocket
@jldoubleu
jldoubleu / project.clj
Last active August 29, 2022 02:52
Small http-kit server using compojure for routing.
(defproject client-server "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.0"]
[compojure "1.6.1"]
[http-kit "2.3.0"]]
:main ^:skip-aot client-server.core
:target-path "target/%s"