zwopple / PocketSocket

Objective-C websocket library for building things that work in realtime on iOS and OS X.
Other
414 stars 129 forks source link

'Connection refused' error when trying to use a sample code #19

Closed ucomah closed 8 years ago

ucomah commented 10 years ago

Hello,

I recently was trying to use your code to test client server WebSockets communications on iOS. I've just grabbed a client & server code from you sample and no matter which values I used, I was getting this error when was trying to connect to your WebSocket server using your WebSocket client:

The websocket handshake/connection failed with an error: Error Domain=NSPOSIXErrorDomain Code=61 "The operation couldn’t be completed. Connection refused"

Thanks!

mrjjwright commented 9 years ago

Same with me.

coveloper commented 9 years ago

+1

arsinio commented 8 years ago

I was able to resolve this issue by making the modifications indicated in #34

slreddy1137 commented 8 years ago

Hi Team,

I have made changes suggested in #34 but still it doesn't work, can anyone please help me on this.

robertjpayne commented 8 years ago

@slreddy1137 any chance you can share a bit of the code you are using to connect?

slreddy1137 commented 8 years ago

Hi Robert,

Thanks Robert for reverting back on this.

i am able to connect now, it works, i m looking to putting TLS, i have opened another thread, can you please help me here

https://github.com/zwopple/PocketSocket/issues/41

I am able to make it as web server and client on the app, now need to have TLS between these two, i have one valid certificate, but how to pass it from webSocketClient while initiating connection and how can webSocketServer validates it, can you help on this please.

Thanks in advance.

slreddy1137 commented 8 years ago

@robertjpayne , can you please help me with the TLS connection, i have a valid .cer certificate, but unable to send it, can you help on this please.

https://github.com/zwopple/PocketSocket/issues/41

Raju2718 commented 8 years ago

The websocket handshake/connection failed with an error: Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused"