Comments (8)
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.
same problem,just the same code and i connected to my own websocket server which is fine
from mobile-websocket-example.
i have the same problem
from mobile-websocket-example.
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.
same problem org.java_websocket.drafts.Draft_10@420581d8 refuses handshake
from mobile-websocket-example.
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.
Even I have same issues
draft org.java_websocket.drafts.Draft_10@2fdc18cd refuses handshake
from mobile-websocket-example.
i have the same problem,hao to solve it
from mobile-websocket-example.
Related Issues (11)
- wss web socket creation issue HOT 2
- can send image HOT 1
- when ios app is in background webSocket didReceiveMessage method is not getting fired.
- Header file missing in WebSocketExampleClient for iOS HOT 1
- Android client Garbage collector issue HOT 1
- iOS client closes with "Stream end encountered"
- Android 5.0 Lollipop wss stopped working HOT 1
- not an issue per se, but shouldn't we disconnect from the socket as well
- send method not working HOT 3
- Socket is not connected properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile-websocket-example.