Questions tagged [starscream]

Starscream is a conforming WebSocket (RFC 6455) client library in Swift for iOS and OSX.

Starscream is a conforming WebSocket (RFC 6455) client library in Swift for iOS and OSX. It's Objective-C counter part can be found here: Jetfire

Features:

  • Conforms to all of the base Autobahn test suite.
  • Nonblocking. Everything happens in the background, thanks to GCD. TLS/WSS support.
  • Simple concise codebase at just a few hundred LOC.

Github project: https://github.com/daltoniam/Starscream

61 questions
1
vote
2 answers

Swift Starscream websocket pod not Connecting to local server and no delegate methods called

I have been trying to connect to a local server without success. My Code is as follows - class SocketManager: NSObject, WebSocketDelegate { var socket: WebSocket! override init() { super.init() self.socket = WebSocket(url:…
Dwijen
  • 590
  • 4
  • 15
0
votes
0 answers

While building for tvOS, no library for this platform was found

I have integrated two third party libraries into the tvOS project. I have no clue why I am getting this error. My Xcode version is 14.0.1.
Akshay_iOS
  • 41
  • 5
0
votes
1 answer

How to work with Starscream library in SwiftUI

I took this piece of code from an example of creating a WebSocket connection with the Starscream library based on UIKit. How can I make it work in my SwiftUI project? class ViewController: UIViewController, WebSocketDelegate { var socket:…
TopScrech
  • 5
  • 1
0
votes
0 answers

Starscream delegate method "didReceive" never gets called

I'm trying to connect to a websockets server with Starscream 4.0.4 but the delegate method never gets called. I've tried many different urls. When I call self.socket!.connect(), I get no error messages, just silent failure. I've also tried…
zakdances
  • 22,285
  • 32
  • 102
  • 173
0
votes
1 answer

Stars color detection using python

I am working on an algorithm that detects new objects in an image of stars. additionally I want my algo to detect if the stars have altered with age as they change their colors with time. hottest appear to be blue where as coldest appear to be red.…
Sara Jamal
  • 41
  • 1
  • 6
0
votes
1 answer

WatchOS establish server connection

I have a client - server IOS application. In addition, I need to write an application for it on WatchOS. So I have 2 questions: When I send a command from Apple Watch, do I need to connect to the server from the watch or transfer information to the…
0
votes
0 answers

Swift solution for web sockets to use https instead of ws or wss?

I’m trying to open a connection to a url that is constantly streaming JSON objects (1 per line) currently the data looks like: {"a": 1, "b": 2, "c": 3} {"a": 4, "b": 5, "c": 6} from my understanding, valid json would be: [ {"a": 1, "b": 2, "c":…
0
votes
0 answers

didReceive(event: WebSocketEvent, client: WebSocket) is not called on socket?.write(string: method in Starscream

I am using latest Starscream version of package in my chat application.Please take a look on my code snippet:- import UIKit import Starscream import Network class ViewController: UIViewController,WebSocketDelegate { var socket: WebSocket! var…
0
votes
1 answer

Can I use SwiftNIO client websocket with different server websocket?

I am new to WebSocket, choosing between https://github.com/daltoniam/Starscream and SwiftNIO, With SwiftNIO couldn't find clear guidelines, can I Use just SwiftNIO client WebSocket in iOS. and the WebSocket server will be implemented using different…
Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63
0
votes
1 answer

Websockets only PONG responses are received

I have implemented SocketRocket for websocket communication in my app but as this library is too old and archived for now, we decided to implement StarScream which seems to be trustable. However, after my migration from SocketRocket => StarScream, I…
Paresh Thakor
  • 1,795
  • 2
  • 27
  • 47
0
votes
0 answers

Websocket read/write at same the time possible?

Is it possible that a websocket client connection, while receiving larger number of data chunks, can send data to server at the same time?
C-Nut
  • 21
  • 5
0
votes
0 answers

How to use url starting with "HTTPS" protocol as WebSocket url in Starscream?

I'm using Starscream Web Socket library. To create web socket I have url starting with HTTPS. But Starscream uses "ws & wss" protocols for sockets. How do I resolve this issue? Mostly socket url starts with ws or wss. But URL I have is looks like…
Dipak iOS
  • 1
  • 1
0
votes
0 answers

dyld: Symbol not found - iOS

Im getting the following log with crash after adding static framework to my app. The project build successfully. but when I run the application. it crashing immediately after launching. Referenced from:…
0
votes
0 answers

Starscream on iOS and WatchOS - Cocoapods

im trying to use Starscream both on iOS and WatchOS with Cocoapods. here's my podfile: inhibit_all_warnings! def all_pods pod 'Starscream', '~>3.0.5' end target ‘ProjTest’ do platform :ios, '10.0' use_frameworks! all_pods end target…
Vinícius Albino
  • 527
  • 1
  • 7
  • 23
0
votes
2 answers

Websocket keeps disconnecting (Starscream)

I'm trying to subscribe to a Websocket hosted on a Mac in my local network. but it disconnects almost immediately after connecting. I can send messages and I can see on my Mac it is receiving them (at least commands) but then it disconnects…
nOk
  • 2,725
  • 4
  • 13
  • 26