             [ring.middleware.keyword-params :as keyword-params]
             [compojure.core                 :refer :all]
             [taoensso.sente                 :as sente]
+            [taoensso.sente.server-adapters.http-kit :refer (sente-web-server-adapter)]
             [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))

    (?reply-fn {:unmatched-event-as-echoed-from-server event})))

(sente/start-chsk-router! ch-chsk event-msg-handler)

(defmethod event-msg-handler :data-import/csv-sent
  [{:as event-msg :keys [event id ?data ring-req ?reply-fn send-fn]}]
