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

Websockets instructions do not work #244

Closed
Doesntmeananything opened this issue Jul 26, 2019 · 5 comments
Closed

Websockets instructions do not work #244

Doesntmeananything opened this issue Jul 26, 2019 · 5 comments

Comments

@Doesntmeananything
Copy link

Hi!

I'm new to clojure web development and I have followed all the instructions from the guide trying to create a websocket client/server. However, doing this in an existing project results in compilation errors. I have also checked the examples linked (both immutant and http-kit versions), and I can't lein run them either. Am I doing something terribly wrong, or is the code and examples indeed no longer work?

Thanks.

@yogthos
Copy link
Member

yogthos commented Jul 27, 2019

The dependencies in the examples are somewhat out of date and won't work with JDK 9+. I'll take a look at updating them.

@yogthos
Copy link
Member

yogthos commented Jul 27, 2019

Out of curiosity, what problems did you run into when following the instructions, that might be a separate issue.

@yogthos
Copy link
Member

yogthos commented Jul 27, 2019

I've updated the HTTP Kit example, let me know if it works for you.

@Doesntmeananything
Copy link
Author

Out of curiosity, what problems did you run into when following the instructions, that might be a separate issue.

Thanks a lot for your help!

When following the code examples, I got cryptic arity errors, and after some searching they seemed to point at an issue in transit-cljs: cognitect/transit-cljs#49

I was really not sure how to proceed from there, so I decided to completely reinstall my JDK and... things worked. 🤦‍♂️

Whatever it was, it originated from my borked java installation. Your HTTP-kit example now compiles and works just fine.

Thanks again for your help. It's a bit overwhelming to be trying to figure stuff out on my own, so any input is always extremely valuable.

@yogthos
Copy link
Member

yogthos commented Jul 27, 2019

No problem, and glad everything's working.

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

No branches or pull requests

2 participants