(defn
enforce-project-plugin
[opts]
(fn
[msg-hist]
(when
(< 1 (count (set (keep :project-id (take 5 msg-hist)))))
(socket/close!)
(.error
js/console
"Figwheel: message received from different project. Shutting socket down.")
(when
(:heads-up-display opts)
(go
(<! (timeout 3000))
(heads-up/display-system-warning
"Connection from different project"
"Shutting connection down!!!!!"))))))