             ))
 
 (let [{:keys [ch-recv send-fn ajax-post-fn ajax-get-or-ws-handshake-fn connected-uids]}
-      (sente/make-channel-socket! {})]
+      (sente/make-channel-socket! sente-web-server-adapter {})]
   (def ring-ajax-post                ajax-post-fn)
   (def ring-ajax-get-or-ws-handshake ajax-get-or-ws-handshake-fn)
   (def ch-chsk                       ch-recv)
   (def chsk-send!                    send-fn)
   (def connected-uids                connected-uids))
+
 (defmulti event-msg-handler :id)
 
 (defmethod event-msg-handler :default

            [ring.middleware.keyword-params :as keyword-params]
            [compojure.core                 :refer :all]
            [taoensso.sente                 :as sente]
            [taoensso.timbre                :as timbre :refer (tracef debugf infof warnf errorf)]
            [clojure.data.csv               :as csv]
            [pva-parrot.calc.pca            :as pca]


      (chsk-send! uid reply-msg))))

(defroutes api-handlers
  (GET "/" [] "You found the PVA Parrot backend service!")
  (GET  "/chsk" request (ring-ajax-get-or-ws-handshake request))
