Hi all,
I'm trying to use Sente (https://github.com/ptaoussanis/sente) with Tornado
websockets (http://www.tornadoweb.org/en/branch2.1/websocket.html).
Tornado side, I published the sample EchoWebSocket on "/echows".
ClojureScript side:
(let [{:keys [chsk ch-recv send-fn state]}
(sente/make-channel-socket! "/echows"
{:type :auto
})]
(def echosk chsk)
(def ch-echosk ch-recv) ; ChannelSocket's receive channel
(def echosk-send! send-fn) ; ChannelSocket's send API fn
(def echosk-state state) ; Watchable, read-only atom
)
The Python console prints "WebSocket opened", the client console shows no error.
The problem is that echosk-state indicates the socket is closed:
#<Atom: {:type :ws, :open? false, :destroyed? false}>
and echosk-send! fails.
Is there a way to use Sente+Tornado?
Thanks a lot
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.