Giter Site home page Giter Site logo

refuses handshake about mobile-websocket-example HOT 8 OPEN

varvet avatar varvet commented on September 24, 2024
refuses handshake

from mobile-websocket-example.

Comments (8)

jas7553 avatar jas7553 commented on September 24, 2024

Same here. Out-of-the-box, I see:
WebSocket connection to 'ws://localhost:8080/' failed: Connection closed before receiving a handshake response client.js:2

And the corresponding source code line:
ws = new WebSocket("ws://" + location.hostname + ":8080/");

Interestingly enough, this problem presents itself in Chrome (38.0.2125.122), but not in Firefox (33.0).

from mobile-websocket-example.

fkaking avatar fkaking commented on September 24, 2024

same problem,just the same code and i connected to my own websocket server which is fine

from mobile-websocket-example.

warjiang avatar warjiang commented on September 24, 2024

i have the same problem

from mobile-websocket-example.

prakashkolandaivelu avatar prakashkolandaivelu commented on September 24, 2024

I got - refuses handshake Draft 17 , false - then changed the code as below:
SSLContext sslContext = null;
try {
sslContext = SSLContext.getDefault();
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
setWebSocketFactory(new DefaultSSLWebSocketClientFactory(sslContext));

Draft_17.
I get : closed connection -1 , , true.
Any help here. This happens during socket creation. I know this very old thread. But now i am in this stage only.

from mobile-websocket-example.

milano95a avatar milano95a commented on September 24, 2024

same problem org.java_websocket.drafts.Draft_10@420581d8 refuses handshake

from mobile-websocket-example.

Vamsi7591 avatar Vamsi7591 commented on September 24, 2024

I have the same issue
CHAT: Closed draft org.java_websocket.drafts.Draft_6455@a52e28e refuses handshake

Thanks in advance,
Vamsi

from mobile-websocket-example.

 avatar commented on September 24, 2024

Even I have same issues
draft org.java_websocket.drafts.Draft_10@2fdc18cd refuses handshake

from mobile-websocket-example.

jcken avatar jcken commented on September 24, 2024

i have the same problem,hao to solve it

from mobile-websocket-example.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.