Comments (10)
What version of SignalR are you using? And what version of SwiftR? And does this error happen after connecting, or after you try to invoke some server method?
from swiftr.
My signalR version is 2.0 and swiftR version is the latest that published. This error happen while connecting. thanks for your response.
from swiftr.
Did you set the SignalR version to 2.0?
SwiftR.signalRVersion = .v2_0_0
from swiftr.
Yes I set it up with the same code you mentioned.
But unfortunately I get this error again:
SwiftR unable to process message oxd6kero: Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLocalizedDescription=JavaScript execution returned a result of an unsupported type}
from swiftr.
I was upgraded my SignalR to 2.1.0 It works, but now any time I run my code the hubconnectio.state is Disconnected why?
SwiftR.transport = .ServerSentEvents
SwiftR.signalRVersion = .v2_1_0
hubConnection = SwiftR.connect("http://myurl.ir") { [weak self] connection in
connection.queryString = ["user_type": "client"]
self?.simpleHub = connection.createHubProxy("TaxiTopHub")
print(self!.hubConnection.state)
}
from swiftr.
Finally I solve it.
from swiftr.
What was the issue?
from swiftr.
vahidamini could you please take the time to answer Adam's question?
You may need him again!!
from swiftr.
I was wrong , uncommenting this line of my code solved my problem:
SwiftR.useWKWebView = true
Thanks Adam.
from swiftr.
thanks for the answer. it didn't solve it for me. still get: SwiftR unable to process message 3k7umb08: Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLocalizedDescription=JavaScript execution returned a result of an unsupported type}
from swiftr.
Related Issues (20)
- "There was an error invoking Hub" Swift 4 HOT 5
- My signalR connection is established but can not invoke the hub function.
- hub.invoke(...) Won't handle any response.
- SignalR 1.0.0-preview2-final in .NET core?
- SwiftR 0.14.0 is not connecting with server using Xcode 9.3, Swift 4.1 and iOS 11.3 HOT 3
- dyld: Library not loaded: @rpath/SwiftR.framework/SwiftR
- Spelling issue
- Hub.on is not getting called after establishing connection HOT 1
- How to remove registed hub in hubs
- How can i upgrade from v2.2 to v2.4?
- Close a persistent connection
- loging connection information
- How to remove event from chathub?
- Xcode 10 can't run in swift 4 HOT 5
- Mac Catalyst support! HOT 3
- UIWebView deprecated from iOS 13 HOT 1
- UIWebView deprecated HOT 9
- not supporting latest iOS . please make it compatible for swift 5 and iOS 15.
- Solved UIWebView deprecated and Swift 5 compatibility
- Remove the listener of .on method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftr.