LispCookbook / cl-cookbook

The Common Lisp Cookbook
http://lispcookbook.github.io/cl-cookbook/
Other
923 stars 138 forks source link

the codes under Chapter websockets didn't work well on cloud server. #447

Open cl-03 opened 2 years ago

cl-03 commented 2 years ago

I found that the package CLACK exists some bugs, so that the codes under Chapter websockets didn't work well on cloud server,just work well on localhost.even though the Helloworld example at https://github.com/fukamachi/clack. (defvar *handler* (clack:clackup (lambda (env) (declare (ignore env)) '(200 (:content-type "text/plain") ("Hello, Clack!")))))

cl-03 commented 2 years ago

but Hunchensocket works well

vindarel commented 2 years ago

Thanks for reporting. Is there a corresponding Clack issue?

What is the code to change, this?

(defvar *chat-handler* (clack:clackup #'chat-server :port 12345))
(defvar *client-handler* (clack:clackup #'client-server :port 8080))
vindarel commented 2 years ago

I also found the websocket-client buggy on localhost.

The Hunchensocket example worked fine. I tested it with https://www.piesocket.com/websocket-tester

Also the newer Portal works fine and looks clean and simple: https://github.com/charJe/portal