Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cl-03 opened this issue May 9, 2022 · 3 comments
Open

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

cl-03 opened this issue May 9, 2022 · 3 comments

Comments

@cl-03
Copy link

cl-03 commented May 9, 2022

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
Copy link
Author

cl-03 commented May 9, 2022

but Hunchensocket works well

@vindarel
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants