Comments (8)
BTW, I altered my code to send a proper URL...as follows. I think Socket IO
appends http on its own ..so sending http is redundant..so my call to
connecttohost looks like this :
[_socketConnection connectToHost:@"bubbleme.azurewebsites.net"
onPort:80 withParams:nil withNamespace:@""];
I get the error below now...
Warning: Error creating LLDB target at path
'/Users/anuradhavasudeva/Desktop/Buzz/Complete/CWPAYou/Build/Products/Debug-iphonesimulator/CWPAYou.app'-
using an empty LLDB target which can cause slow memory reads from remote
devices.
2014-10-02 21:40:12.355 CWPAYou[11590:340614] Can't find keyplane that
supports type 5 for keyboard iPhone-Portrait-PhonePad; using
2870935746_Portrait_iPhone-Complex-Pad_Default
2014-10-02 21:40:26.335 CWPAYou[11590:340614] Connecting to socket with
URL: http://bubbleme.azurewebsites.net:80/socket.io/1/?t=1412257226336
2014-10-02 21:40:31.194 CWPAYou[11590:340614] send()
2014-10-02 21:40:31.194 CWPAYou[11590:340614] queue >>>
5:1+::{"args":[{"key2":"test2","key1":"test1"}],"name":"join"}
2014-10-02 21:40:31.415 CWPAYou[11590:340614] didReceiveResponse() 400
2014-10-02 21:40:31.415 CWPAYou[11590:340614] ERROR: handshake failed ...
Server returned status code 400
Sent from my Google Nexus Phone
On Oct 3, 2014 12:08 PM, "Sivathmican Sivakumaran" [email protected]
wrote:
I think a common mistake is to not omit the "http://" part of the host
url when using the connectToHost method. This is added automatically. So
instead of "http://www.example.com", use "example.com".—
Reply to this email directly or view it on GitHub
#55 (comment)
.
from socket.io-objc.
Did you ever figure this out? I have a socketIO server running on Heroku. I'm unsure what port I'm suposed to be listening to be listening to. My javascript client works when I don't specify a port number. With this library, I don't have the option of not specifying a port number.
from socket.io-objc.
Does this error got resolve ?
Any Solution ?
from socket.io-objc.
@ShreyasSA I fixed my problem but it was something trivial. If you give me more information I can help you debug your problem.
from socket.io-objc.
Hey guys,
I'm facing the same issue here. When I connect to the server on a browser using the same URL it works fine but when I try to connect thru my Xcode program it throws an error! Any guess why this could be happening?
from socket.io-objc.
I think a common mistake is to not omit the "http://" part of the host url when using the connectToHost method. This is added automatically. So instead of "http://www.example.com", use "example.com".
from socket.io-objc.
@anuradhavasudeva I suspect the port you have used is wrong.
from socket.io-objc.
@anuradhavasudeva Does this error got resolve ?
Any Solution ?
from socket.io-objc.
Related Issues (20)
- [iOS 8] The socket connection is disconnected when homescreen is turned off
- problem in receiving a message
- compatibility issue with socket.io version HOT 3
- [SRWebSocket setReadyState:] causes SIGABRT ABORT HOT 5
- Is there a way to get transfer progress?
- Unable to retrieve whole data on acknowledge HOT 1
- Can't send '£' HOT 2
- Socket connection got disconnected in iOS HOT 3
- host with a different resource/path
- ERROR: data that has arrived wasn't valid HOT 5
- arm64
- Getting more done in GitHub with ZenHub
- Never send Event/Message from client (iOS) to server (Node.js)
- Send cookies in websocket. HOT 1
- NSURLConnection deprecated
- Trying to get socket.IO-objc to work with socket.io's chat example HOT 3
- Is there a way to get the status of connected client socket
- handshake failed ... Server returned status code 400, Error Domain=SocketIOError Code=-6 HOT 6
- How to maintain socket connection in background?? HOT 1
- Who could reopen this project?
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 socket.io-objc.