Comments (14)
Can you post your setup that didn't work? I didn't try it but from the documentation it seems something like
const socketio = require('feathers-socketio');
const p2p = require('socket.io-p2p-server').Server;
const app = feathers().configure(socketio(function(io) {
io.use(p2p)
}));
On the server and on the client:
const P2P = require('socket.io-p2p');
const io = require('socket.io-client');
const socket = io();
const p2p = new P2P(socket);
const app = feathers()
.configure(feathers.socketio(p2p));
Should work.
from socketio.
Tried it exactly as you described and it works. Thank you! However server doesn't return responses. This is still websockets, haven't tried webrtc yet.
client.js?13cc:87 Uncaught (in promise) Error: Timeout of 5000ms exceeded calling properties::find(…)
from socketio.
WebRTC works, but feathers services don't return responses again.
from socketio.
Can you share your app setup, maybe in a GitHub repository?
from socketio.
@mishoboss yes please. I would be keen to see if we can get this working.
from socketio.
Hey yeah. Nice. We could grow our family of supported providers.
from socketio.
Hi guys, my setup is pretty complex and still not fully working. The effort to make something reproducible by you is not small. But you don't need exactly my setup to reproduce it. Just try to use socket.io-p2p instead of socket.io on a clean feathers and you will see what I mean.
from socketio.
Hi, did you managed to reproduce it? Its really simple - just try to use socket.io-p2p instead of socket.io.
from socketio.
@mishoboss please prepare that simple repo for us i think we are doing enought work help is much wanted.
from socketio.
Although I really like the idea, this issue has been open for a while and I don't think we'll be able to look into it more any time soon.
from socketio.
@daffl i think you should reopen that as its easy to reproduce that demo and its a nice feature.
from socketio.
Hi guys. I also think this feature is not only a nice one, but also a very important one. It opens so much more use cases where Feathers could fit.
BTW, I really can't understand why you need a simple example to reproduce it. Just set an empty feathers project and put socket.io-p2p in it the way it is described in its docs. Thats it. You will see the issue right after you do that. :)
from socketio.
@mishoboss the problem is why don't you do that :)
from socketio.
Hi guys. I also think this feature is not only a nice one, but also a very important one. It opens so much more use cases where Feathers could fit.
I completely agree.
BTW, I really can't understand why you need a simple example to reproduce it. Just set an empty feathers project and put socket.io-p2p in it the way it is described in its docs. Thats it. You will see the issue right after you do that. :)
It's mostly because of my schedule. It's absolutely freaking packed like I never thought it could be. I don't know what I expected with my life choices. There are seven wild animals running around my house. Five of them are my kids, and the other two are their parents. We also run our own business, are employed full time and at the moment get to deal with the aftermath of what happens when houses flood. ;)
Ok. Joking aside, the little demo apps go a long way to save us time looking up things we've not yet experienced. Each one of us has worked on Feathers on a 100% volunteer basis, and we bring our talents to the table and make cool stuff with it. We're all also working on cool stuff in our spare time (which is unfortunately scarce) that will benefit the community in ways that each of us sees fit. So far, our schedules don't interfere with doing amazing work when you look at the big picture. We have each individually donated thousands of personal hours to the community. And we definitely all try to foster a community where everyone's ideas are valued, encouraged, and where everybody feels like they have the support they need to work on their ideas.
In short, if you want to champion this feature, we've got your back. But we have to take a supporting role at the moment, and not the lead. If you want to take the lead at making this work, feel free to reopen and hit us up in chat with questions you have while you're figuring out how to make this feature work. We've got your back, but you've gotta be in front.
By the way, we love you guys and the contributions you've already made in the community.
Again, I think this is a sweet idea.
from socketio.
Related Issues (20)
- Options are not passed to socket-io HOT 2
- How to stop listening to socket server from client service HOT 5
- Updated from feathers-socketio to @feathersjs/socketio; error message HOT 1
- How to change 5000ms timeout? HOT 2
- My chat room sometimes the user's text has become????? HOT 2
- `yarn add @feathersjs/socketio` gets stuck HOT 2
- Connection closed before receiving a handshake response HOT 3
- User object missing in logout callback args under certain conditions HOT 7
- An in-range update of feathers-hooks is breaking the build 🚨
- Add Socket.io v2 support HOT 2
- An in-range update of mocha is breaking the build 🚨 HOT 1
- An in-range update of babel-core is breaking the build 🚨 HOT 1
- Connecting to sockets on a path HOT 1
- Maybe acting wrong please look into my test app HOT 1
- Connection closed before receiving a handshake response HOT 7
- An in-range update of babel-cli is breaking the build 🚨 HOT 2
- An in-range update of mocha is breaking the build 🚨 HOT 2
- Filter service updates by ID HOT 1
- Remote address IP is always undefined HOT 1
- feathers / graphql using REST / Sockets HOT 8
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 socketio.