Questions tagged [socketrocket]

For questions related to SocketRocket, a WebSocket client for Objective-C

SocketRocket is an open-source WebSocket client for Objective-C.

For more information, see this paper or visit the git-hub site

79 questions
0
votes
0 answers

Method not converted from objective-c to swift

I need to implement wamp v1 protocol in my swift project. I googled for library MDWamp (v 1.1.0). Also with MDWamp i need SocketRocket (v 0.3.1-beta2). All installed via cocoapods like this: use_frameworks! target 'webs' do pod…
pacification
  • 5,838
  • 4
  • 29
  • 51
0
votes
1 answer

Unable to compile Swift 2 code calling into Objective C library (pod)

I am trying to use SocketRocket (an Objective-C pod) from Swift 2. I have creating a bridging header. Here is what I am trying: import SocketRocket class WS3: NSObject, SRWebSocketDelegate { func websocket(webSocket: SRWebSocket!, …
Jack Orenstein
  • 169
  • 2
  • 9
0
votes
1 answer

Is pinning a custom CA certificate enough to verify last certificate in the chain?

I am trying to use a custom CA on SocketRocket. Is pinning the root certificate enough to verify MySuperServer in the construct below? -MyCustomCA -IntermadiateA -IntermadiateA1 -MySuperServer Or do I have to pin IntermadiateA1 certificate?
guness
  • 6,336
  • 7
  • 59
  • 88
0
votes
1 answer

SocketRocket not throwing error on connecting invalid host

I am developing an iPhone App (using iOS 9 beta). I am using Socket connections for which I am using SocketRocket client library. But when I try to establish a wss connection with some invalid host name, I don't get any error on opening socket,…
user2312896
  • 389
  • 3
  • 14
0
votes
1 answer

Socket Rocket Asynchronous delegate methods

Using Socket Rocket library for WebSocket connections. When I saw the source of Socket Rocket, it is clearly visible that it is calling the methods of its delegate class (my class) asynchronously using dispatch_async. But when in my class where…
kerry
  • 2,362
  • 20
  • 33
0
votes
1 answer

SocketRocket + Socketio Failing to Build Handshake

I'm trying to build a handshake between an iOS app and a Socketio server based off of this tutorial: Teehan+Lax The issue I'm having is that a connection is never opened properly, which I think is because the Handshake + token aren't being generated…
scoob
  • 367
  • 2
  • 14
0
votes
1 answer

iOS WebSocket not connecting to Server using SocketRocket

I'm creating a chat application whose WebSocket server is written in java. For WebSocket client i'm using SocketRocket library. Everything works fine when i try to connect from localhost or 127.0.0.1. But when i try to connect it using the public…
S1LENT WARRIOR
  • 11,704
  • 4
  • 46
  • 60
0
votes
1 answer

SRWebsocket close the connection ios

I am using SRWebsocket in my connection class I am trying to disconnect the socket when the app goes to background i have tried these things SRWebSocket *_webSocket; -(void)close { [_webSocket close]; _webSocket.delegate = nil; …
user3115014
  • 667
  • 1
  • 8
  • 23
0
votes
1 answer

How to connect to server using https by socketrocket

I'm using socketrocket to connect to a server, everything's ok with http. My question: how to connect to server using https by socketrocket
Nhut Duong
  • 612
  • 4
  • 5
0
votes
1 answer

BinaryJS iOS client with file upload

I'm trying to upload a file from ObjectiveC to a BinaryJS server. I've tried https://github.com/square/SocketRocket with no luck. SocketRocket can't transfer byte arrays, it expects an NSData object or NSString, whereas BinaryJS is expecting an…
uomolupo
  • 77
  • 4
0
votes
1 answer

RocketSocket error -- No known instance method for base64EncodedData

I'm attempting to use the RocketSocket library on a OS 10.7 but Xcode keeps complaining that the property base64Encoding not found in NSData and NSMutable regarding these lines in SRWebSocket.m: return [[NSData dataWithBytes:md…
Dawud
  • 19
  • 2
0
votes
1 answer

Xcode Mach-O Linker errors with 64-bit simulator

I have been developing an iOS app in Xcode. It compiled and ran perfectly in the regular simulator, but when I switched the simulator device to 64-bit, it failed with 13 new warnings and 37 new errors, all of which are associated (I think) with an…
zch
  • 3,020
  • 4
  • 26
  • 34
0
votes
2 answers

Sending a UILocationNotification from the background

I have an app where I need to send a UILocationNotification when the app is not in the foreground / Active. If I have my code to do so, it will not send until the app is opened and is active. Here is my function: -…
0
votes
1 answer

CFStreamCreatePairWithSocketToHost fails to connect to server while mobile safari can

I have a websocket enabled webapp and I use SocketRocket to work with it from my iOS app. Everything was fine until I changed network settings on iPad to work without DNS and thru proxy. Now I cannot connect to my web app via iOS app although I can…
user1264176
  • 1,118
  • 1
  • 9
  • 26
0
votes
1 answer

SocketRocket calling an open connection

i currently have a socketrocket connection in my appdelegate.m _webSocket = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"ws://pinkfalcon.nl:12345/connectr"]]]; _webSocket.delegate = self; [_webSocket…
Benjamin de Bos
  • 4,334
  • 4
  • 20
  • 30