Comments (10)
I found the solution
create new file in services/window.js with this content:
global.window = {
...global.window,
location: {
protocol: 'http:'
},
WebSocket
}
import this file into App.js before calling the socket.
Like this: import './services/window.js';
from adonis-websocket-client.
I found the solution
create new file in services/window.js with this content:
global.window = {
...global.window,
location: {
protocol: 'http:'
},
WebSocket
}import this file into App.js before calling the socket.
Like this: import './services/window.js';
It's work for me! I'm using RN 0.6.0. Thanks for this help
from adonis-websocket-client.
I'm using this fork, it's working in both iOS and Android. @drayber/adonis-websocket-client
from adonis-websocket-client.
Hey @hitesh3001! 👋
Please, try to install the library from Github using the develop
branch, I'll see to make a release soon.
from adonis-websocket-client.
Hey there. Any news?
from adonis-websocket-client.
Hi. Any news?
from adonis-websocket-client.
Yess please... i want to try adonis client in my react-native app
from adonis-websocket-client.
me too pleaseee!!!!
from adonis-websocket-client.
Did anyone managed to get this working on iOS 13?
The websocket connect and then disconnects immediately? Last message on the adonis logs is:
'adonis:websocket closing from %s state +150ms terminated'
Edit: On Android it's working perfectly.
from adonis-websocket-client.
Did anyone managed to get this working on iOS 13?
The websocket connect and then disconnects immediately? Last message on the adonis logs is:
'adonis:websocket closing from %s state +150ms terminated'
Edit: On Android it's working perfectly.
Have you solved this?
from adonis-websocket-client.
Related Issues (20)
- adonis-websocket-vue repo not found HOT 10
- Websocket Connection to url failed HOT 1
- undefined is not an object (evaluation 'window.location.protocol') HOT 4
- How config TIMEOUT into options for ERROR on React Native Android HOT 2
- Disable console logs HOT 4
- Build
- Is that possible to adapt for React Native? HOT 1
- Unexpected token error when trying to import 'Ws' HOT 1
- Websocket Babel Error Fix
- How to disable console output when bundling for production with VueCLI? HOT 15
- Unsubscribing from channel HOT 1
- How to use websocket with flutter HOT 3
- Adonis WebSocket Client Example HOT 3
- Trying to close a channel and subscribing to it after throws an error HOT 1
- Access-Control-Allow-Origin
- ws.connect is not a functio HOT 1
- WebSocket client for NodeJS HOT 1
- How to close debug messages in desired env. Not just for production
- Use adonis-websocket-client with Web Worker
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 adonis-websocket-client.