-
Notifications
You must be signed in to change notification settings - Fork 14
Any chance for socket.io-p2p support? #37
Comments
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. |
WebRTC works, but feathers services don't return responses again. |
Can you share your app setup, maybe in a GitHub repository? |
@mishoboss yes please. I would be keen to see if we can get this working. 😁 |
Hey yeah. Nice. We could grow our family of supported providers. |
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. |
Hi, did you managed to reproduce it? Its really simple - just try to use socket.io-p2p instead of socket.io. |
@mishoboss please prepare that simple repo for us i think we are doing enought work help is much wanted. |
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. |
@daffl i think you should reopen that as its easy to reproduce that demo and its a nice feature. |
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. :) |
@mishoboss the problem is why don't you do that :) |
I completely agree.
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. |
I tried to make it work with https://github.com/socketio/socket.io-p2p, but socket.io-p2p creates another kind of object inside app.io object and feathers is unable to send/receive anything. Any chance for feathers-socketio to support socket.io-p2p too?
The text was updated successfully, but these errors were encountered: