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.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Uncaught Error: No protocol method ICollection.-conj defined for type cljs.core.async.impl.channels/ManyToManyChannel: [object Object]
Code below is in websocket.cljs
(ns async-workshop.chat-demo.client.web-socket (:require [goog.events :as ev] [om.core :as om :include-macros true] [cljs.core.async :as async :refer [<! chan >! put!]] [om.dom :as dom :include-macros true]) (:require-macros [cljs.core.async.macros :refer [go-loop]]) (:import goog.net.WebSocket)) (def socket-chan (chan)) (defn ^:private make-init-state [] (let [socket (WebSocket.)] (ev/listen socket #js [WebSocket.EventType.CLOSED WebSocket.EventType.ERROR WebSocket.EventType.MESSAGE WebSocket.EventType.OPENED] (fn [e] (.log js/console (.-type e)) (put! socket-chan (.-type e)) )) {:socket socket})) (defn ^:private socket-state-loop [global-state] (go-loop [] (when-let [msg (<! socket-chan)] (.log js/console msg) (recur))))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error:
Uncaught Error: No protocol method ICollection.-conj defined for type cljs.core.async.impl.channels/ManyToManyChannel: [object Object]
Code below is in websocket.cljs
The text was updated successfully, but these errors were encountered: