Comments (20)
hmm.. testing a fresh project here right now... I'll report back soon.
from react-native-signalr.
I am sorry for not updating. The issue was the url passed in was what was causing the issue. Hard linking the url worked and I will later be testing getting the url set in a var. Ill update with findings. Thanks for closing.
from react-native-signalr.
iOS? Hmm.. Version 1.0?
from react-native-signalr.
"react-native-signalr": "^1.0.0"
That is from my package.json.
from react-native-signalr.
react-native version ?
from react-native-signalr.
0.40.0
from react-native-signalr.
Is there any way the jquery library in the server example would be included with the native package ?
from react-native-signalr.
THANKS SO MUCH!
from react-native-signalr.
@ezyone123 hmm.. no problems here on a fresh project, connected and worked fine. Same import as yours. RN 0.40 and rn-signalr 1.0.
The package.json:
{
"name": "yyy",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "~15.4.0-rc.4",
"react-native": "0.40.0",
"react-native-signalr": "^1.0.0"
},
"devDependencies": {
"babel-jest": "18.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "18.1.0",
"react-test-renderer": "~15.4.0-rc.4"
},
"jest": {
"preset": "react-native"
}
}
It might be that signalr-library conflicts with some other dependency you have.
Could you post your package.json, or only the dependencies you have?
that window.location thing is a global hack that needs to be there for signalr-client to function. Nothing that awful, but it might conflict. Another question as well, are you running with any custom debugger?
from react-native-signalr.
{
"name": "TeamDynamix",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"flow": "node_modules/.bin/flow"
},
"dependencies": {
"react": "15.4.2",
"react-native": "0.40.0",
"react-native-camera": "^1.0.0-alpha1",
"react-native-code-push": "^1.16.1-beta",
"react-native-cookies": "^2.0.0",
"react-native-drawer": "^2.3.0",
"react-native-fabric": "^0.4.0",
"react-native-keychain": "^1.0.0",
"react-native-maps": "^0.13.0",
"react-native-onesignal": "^2.0.0",
"react-native-orientation": "git+https://github.com/yamill/react-native-orientation.git",
"react-native-router-flux": "^3.37.0",
"react-native-signalr": "^1.0.0",
"react-native-simple-store": "^1.1.0",
"react-native-vector-icons": "^4.0.0",
"react-redux": "^5.0.2",
"redux": "^3.6.0",
"redux-thunk": "^2.1.0"
},
"devDependencies": {
"babel-jest": "18.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "18.1.0",
"react-test-renderer": "15.4.2",
"flow-bin": "^0.37.4"
},
"jest": {
"preset": "react-native"
}
}
from react-native-signalr.
I am using a error reporting service, its the fabric dependency.
from react-native-signalr.
Yes. I know fabric. I'll try installning all your dep and importing them before signalr and see if I can reproduce. You can try removing the others on at a time maybe. and see if you can get it running. You should also try a fresh project like i did with react-native init
to see that it's not an issue with your env.
from react-native-signalr.
importing your library into the root of my app does not result in any errors.
from react-native-signalr.
and it only happens when I call connection.start
from react-native-signalr.
I went though all my dependencies and none (other than yours) have a jquery dependency
from react-native-signalr.
Weird. The only way I can help you further is by testing you acutul source-code. If it's not that private of a project you can zip it and mail it to me at [email protected] and I'll take a look.
from react-native-signalr.
Turns out it was the URL I was passing in for the server. Is there a check to make sure the URL is a proper URL?
from react-native-signalr.
@ezyone123 Ah! Then there must be something here : https://github.com/olofd/react-native-signalr/blob/master/src/bridge.js#L28 Could you set a breakpoint there and see what goes wrong?
from react-native-signalr.
@ezyone123 Did you solve this? Please close the issue if you found a solution.
from react-native-signalr.
Closing
from react-native-signalr.
Related Issues (20)
- how can change state from on(event) HOT 1
- .NET core 2.0 support
- How is reconnection handled? HOT 3
- IOS - SignalR Connection break when app move in background. HOT 4
- Does it support Net Core 2.1 or later?
- get 'undefined' from server in invoke
- cannot receive message HOT 1
- Timer Error HOT 1
- Try specifying a different transport or none at all for auto initialization.
- How to send token or other data HOT 3
- Signal R not working with ANDROID STORE VERSION
- Unable to call signalR method
- Replace deprecated dependency ms-signalr-client HOT 1
- Failed - Error: Error during negotiation request. HOT 3
- Autoreconnect feature HOT 1
- TypeError: Cannot set property userAgent of #<Navigator> which has only a getter HOT 1
- hello
- Forgotten Package
- On Screen Change, Event Is Still fired HOT 7
- is this lib dead? HOT 5
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 react-native-signalr.