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
2
votes
1 answer

Library not found Error when simple building web socket chat in iOS?

i downloaded simple web socket chat code and am getting this error ld: library not found for -lPods-SocketRocket clang: error: linker command failed with exit code 1 (use -v to see invocation) Please anyone tell me how to solve this? In my…
Naveen Kumar
  • 177
  • 2
  • 2
  • 11
2
votes
0 answers

iOS Websocket Library(SocketRocket) gets disconnected at every few seconds

I am working on websocket connection and I am using SocketRocket(https://github.com/square/SocketRocket) library for that, I am got successful in connecting with server, but connection gets disconnected at every few seconds. I dont know why this is…
Abhishek
  • 1,682
  • 2
  • 17
  • 29
2
votes
1 answer

iOS Rocket socket with ip address not working

I want to make the socket rocket work with ip address instead of host name I am using Socket Rocket Visit https://github.com/square/SocketRocket#readme to create real time application on iPhone/ipad ,the library works fine if i use host name , but…
2
votes
1 answer

Difference between UnittWebSocketClient library and SocketRocket. Which one is efficient to use?

Difference between UnittWebSocketClient library and SocketRocket. Which one is efficient to use to implement WebSockets in iOS Apps?
user_1989
  • 375
  • 4
  • 10
2
votes
2 answers

SocketRocket and iOS certificate pinning

I'm currently using SocketRocket as the WebSocket implementation for my iOS applications and would like to pin my server's CA as a trusted certificate with the SR_SSLPinnedCertificates property. I'm looking for a good example of loading one or more…
user2681040
  • 21
  • 1
  • 3
2
votes
3 answers

Calling a delegate function and return result

Im doing a small test project with SocketRocket on ios. But i can't seem to wrap my head around the logic. Here's the thing: I have need to have a sort of "global" function to call the sockets. When my app opens it should connect using the…
Benjamin de Bos
  • 4,334
  • 4
  • 20
  • 30
2
votes
1 answer

Socket Rocket Test/Tutorial

I'm new to socketrocket and to iOS development. I'm trying to follow along at https://github.com/square/SocketRocket#readme and implement the basic test chat app but am having trouble making things work. Beginning with "go into the SocketRocket root…
user2485798
  • 21
  • 1
  • 3
1
vote
1 answer

Instance method nearly matches optional Requirement

I have a class in swift which implements SRWebSocketDelegate protocol written in objective-c. When I try to implement it's optional method webSocketDidOpen, then I get the following warning: Also, when I run my code the implementation for…
Exception
  • 2,273
  • 1
  • 24
  • 42
1
vote
1 answer

Objective C pods in Swift Project - right bridging headers?

I am trying to add SocketClusteriOS (https://github.com/abpopov/SocketCluster-ios-client) pod written in Objective C to Swift project. I've tested the this pod in Objective C project, url seems working fine, but when I am trying to add it to Swift…
1
vote
1 answer

No iOS socket frameworks can connect to server socket

I'm trying to use a socket framework to connect to a socket I have. I am able to connect just fine with raw socket code like: uint portNo = 9900; CFReadStreamRef readStream; CFWriteStreamRef writeStream; CFStreamCreatePairWithSocketToHost(NULL,…
b_the_builder
  • 69
  • 1
  • 6
1
vote
0 answers

SRWebsocket notification when send finished

I am trying to sync read and write operations when using Socket Rocket websocket library for iOS. When reading packets is finished I get a call to DidReceiveMessage is called, however, I cannot find a way to get notified once a send: operation…
Boris.le
  • 11
  • 2
1
vote
1 answer

NSTimer doesn't work

Main problem I'm implementing bandwidth management for Socket Rocket. To reduce amount of alteration in Socket Rocket I've decided to create subclass of NSOutputStream which will wrap NSOutputStream created for a socket. Concept is quite nice and…
Marek R
  • 32,568
  • 6
  • 55
  • 140
1
vote
1 answer

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SRWebSocket"

I'm using SocketRocket as a WebSocket library which I have installed through the cocoabot package manager in a MAC for a platform with iOS 6. When in appDeligate.m I put the header files #import and in a function I'm…
Symeon Mattes
  • 1,169
  • 16
  • 40
1
vote
1 answer

SocketRocket and AFNetworking cookie sync

We are using SocketRocket implementing a chat feature. But the problem is when init the SocketRocket, it filtered by the server side login filter, so it can't do http three times handshake success. When we remove the server side login filter, the…
astarring
  • 154
  • 1
  • 5
1
vote
2 answers

SocketRocket and pinning certificate error?

I'm working with SocketRocket, so far everything has been working fine and today I wanted to try to pin down a (self signed) certificate but I get an error: - (void)connectWebSocket { webSocket.delegate = nil; webSocket = nil; NSString…
Kostas
  • 367
  • 1
  • 3
  • 17