                                                          :exception err}))
                                   (close! res-ch)))
                            (-serialize serializer buf write-handlers value)
-                           (.write ws (js/Uint8Array. (js->clj (.from js/Array @buf))))
+                           (.write ws (js/Uint8Array. (.from js/Array @buf)))
                            (.close ws)))
         (.on rs "error" (fn [err]
                           (put! res-ch (ex-info "Could not write edn."

                                                    :exception err}))
                             (close! res-ch))))
        (-serialize serializer buf write-handlers value)
        (.write ws (js/Uint8Array. (js->clj (.from js/Array @buf))))
        (.end ws)))
    res-ch))


                                     :locks          (atom {})
                                     :config         config}))))

