GithubHelp home page GithubHelp logo

Comments (8)

anuradhavasudeva avatar anuradhavasudeva commented on June 27, 2024 1

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.

SivaDotRender avatar SivaDotRender commented on June 27, 2024

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.

ShreyasSA avatar ShreyasSA commented on June 27, 2024

Does this error got resolve ?
Any Solution ?

from socket.io-objc.

SivaDotRender avatar SivaDotRender commented on June 27, 2024

@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.

anuradhavasudeva avatar anuradhavasudeva commented on June 27, 2024

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.

SivaDotRender avatar SivaDotRender commented on June 27, 2024

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.

yunas avatar yunas commented on June 27, 2024

@anuradhavasudeva I suspect the port you have used is wrong.

from socket.io-objc.

IOSLZZ avatar IOSLZZ commented on June 27, 2024

@anuradhavasudeva Does this error got resolve ?
Any Solution ?

from socket.io-objc.

Related Issues (20)

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.