Web Development with Clojure, Third Edition: needing to import websockets.cljs (Page 148 of 325)

Web Development with Clojure, Third Edition:

Page 148 of 325

It was obvious to me but may not be to many, there is no mentioning of needing to import websockets.cljs prior to calling send-message! in the :message/send! event

Once I imported [guestbook.websockets :as ws] it worked fine :slight_smile:

p.s. Amazing book so far !!

3 Likes

Thanks for the heads up, updated to mention the require. And glad to hear you’re liking it so far!

2 Likes

In P1.0 page 143 the missing import is still there.

In P1.0 page 152 the import is mentioned. Perhaps part of this paragraph can be moved up to page 143.