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
51
votes
4 answers

Class is implemented in both. One of the two will be used

I have a project that has a dependency (installed via CocoaPods) using SocketRocket and have imported a static library from HeapAnalytics. Apparently the HeapAnalytics library already uses SocketRocket. I get no errors when compiling, but at runtime…
MrGrinst
  • 970
  • 3
  • 9
  • 20
14
votes
3 answers

WebSocket Connection is not closing using SocketRocket

I use the SocketRocket library for Objective-C to connect to a websocket: -(void)open { if( self.webSocket ) { [self.webSocket close]; self.webSocket.delegate = nil; } self.webSocket = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest…
Philipp Otto
  • 4,061
  • 2
  • 32
  • 49
10
votes
2 answers

SocketRocket not working on iOS 5.0

I just made a simple real-time text chat application using SocketRocket. It works great on iOS 6.0 and 5.1 but when I try to run it on 5.0 when connecting I get the following error... Websocket Failed With Error Error Domain=NSOSStatusErrorDomain…
Arbel
  • 425
  • 8
  • 26
9
votes
4 answers

SocketRocket After trying to install socketrocket so that I can make PonyDebugger work, I'm getting 3 Apple Match-O linker errors

I'm getting the fllowing. It's my first time trying to install this and I have to since I need the Pony Debugger working. Undefined symbols for architecture i386: "_utf8_countTrailBytes", referenced from: …
gdubs
  • 2,724
  • 9
  • 55
  • 102
8
votes
3 answers

How to use SocketRocket with socket.io?

The new iOS websocket library, SocketRocket, looks really awesome, and the chat example project is really sweet. The example chat server is written in Python, of which I know none. I'm slightly familiar with socket.io on node.js and prefer to try…
seeker12
  • 731
  • 2
  • 8
  • 20
8
votes
3 answers

clients for signalR in native ios and android

1) If I have to develop native IOS client for a server that uses SignalR can I use SocketRocket or UnittWebSocketClient ? 2) The client App does not use any browser will that matter ? 3) How is SignalR Different from Superwebsocket or microsoft's…
coolshashi
  • 420
  • 1
  • 6
  • 19
6
votes
1 answer

How to prevent web socket DDOS attacks?

I just performed a basic DDOS from my computer: websocket-bench -a 2500 -c 200 wss://s.example.com Which to my total dismay crashed my server! The WS works by connecting to my nginx proxy: location / { proxy_pass http://sock; …
maxisme
  • 3,974
  • 9
  • 47
  • 97
6
votes
1 answer

SocketRocket - Invalid Sec-WebSocket-Accept

When trying to connect to a custom socket server using SocketRocket I am getting the error: Error Domain=SRWebSocketErrorDomain Code=2133 "Invalid Sec-WebSocket-Accept response" UserInfo=0x8f6af00 {NSLocalizedDescription=Invalid Sec-WebSocket-Accept…
jodm
  • 2,607
  • 3
  • 25
  • 40
6
votes
2 answers

Domain=NSPOSIXErrorDomain Code=61

I'm trying to connect between the client(iOS app) and the server(Node.js) with using SocketRocket and ws like this below. iOS(SocketRocket): NSURL *url = [NSURL urlWithString:@"ws://localhost:8080"]; SRWebSocket *_socket = [SRWebSocket alloc]…
user3278637
  • 61
  • 1
  • 3
6
votes
1 answer

How to debug iOS EXC_BAD_ACCESS KERN_INVALID_ADDRESS on iOS

I'm getting iOS EXC_BAD_ACCESS errors while using SocketRocket, and I wonder what I can do to further debug the issue to determine if the problem is on my side, or on SocketRocket's side. The stacktrace I get is : Crashed:…
Sami Dalouche
  • 654
  • 7
  • 15
5
votes
2 answers

Web Socket: cannot detect client connection on internet disconnect

I want to detect the client connection if client turn off the internet using web socket. My code is: //Include util library var util = require('util'); // Include underscore library var _ = require('underscore')._; //For…
Waleed Amjad
  • 288
  • 1
  • 4
  • 12
5
votes
0 answers

Is there a fork of SocketRocket that is more stable or actively developed?

I've been using SocketRocket for a few projects and have noticed that SocketRocket has quite a few unresolved issues and is buggy. I have personally patched a few crashes that I have experienced. Square does not appear to have been maintaining…
Jeremy White
  • 2,818
  • 6
  • 38
  • 74
5
votes
2 answers

.framework product is red no matter what

I'm trying to add this framework to a project. I have followed these instructions to the letter: Add SocketRocket.xcodeproj as either a subproject of your app or in your workspace. Add SocketRocket.framework to the link libraries If you don't have…
Adam
  • 959
  • 10
  • 23
4
votes
3 answers

upgrading to new react-native version and doing pod install throws an error CocoaPods could not find compatible versions for pod "SocketRocket"

i tried to update react-native version to latest 0.72.3 and run pod install which resulted in next error [!] CocoaPods could not find compatible versions for pod "SocketRocket": In snapshot (Podfile.lock): SocketRocket (= 0.6.0, ~> 0.6.0) …
Victor Orlyk
  • 1,454
  • 2
  • 15
  • 27
4
votes
1 answer

iOS - Best solution for implementing websocket connection across the entire iOS app?

In my app, websocket connection and communication is in the certain ViewController but later came request to receive messages through websocket across the entire app. What would be the best way to do it? To move the websocket code to AppDelegate or…
kresa
  • 176
  • 2
  • 11
1
2 3 4 5 6