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

WebSocket Client not connecting to server #7

Open
YatinGrover opened this issue Aug 8, 2014 · 2 comments
Open

WebSocket Client not connecting to server #7

YatinGrover opened this issue Aug 8, 2014 · 2 comments

Comments

@YatinGrover
Copy link

I followed the code exactly(netty-in-action) and from the client side(interface included in the code of chapter 11) i wasn't able to connect to the netty chatserver.
the url i entered was ws://localhost:9099 in the client browser interface and it couldn't connect
image

the server code is taken from
https://github.com/normanmaurer/netty-in-action/tree/master/src/main/java/com/manning/nettyinaction/chapter11

and the client interface is taken from
https://github.com/normanmaurer/netty-in-action/tree/master/src/main/resources

@zcourts
Copy link
Collaborator

zcourts commented Aug 9, 2014

Can you screenshot the Firefox JavaScript console to show what errors/messages are printed?

@ddossot
Copy link
Contributor

ddossot commented Feb 21, 2015

I can see from the screenshot that the HTML is having issues: see the !doctype html> bit in the top left corner? Maybe this prevented the WS client code to start properly.

yyuweb pushed a commit to sourcecode-in-book/netty-in-action that referenced this issue Oct 18, 2022
修改了jquery源来自国内的,不用翻墙
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

3 participants