Git Product home page Git Product logo

Comments (14)

daffl avatar daffl commented on August 22, 2024

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.

mishoboss avatar mishoboss commented on August 22, 2024

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(…)

image

from socketio.

mishoboss avatar mishoboss commented on August 22, 2024

WebRTC works, but feathers services don't return responses again.

from socketio.

daffl avatar daffl commented on August 22, 2024

Can you share your app setup, maybe in a GitHub repository?

from socketio.

ekryski avatar ekryski commented on August 22, 2024

@mishoboss yes please. I would be keen to see if we can get this working. 😁

from socketio.

marshallswain avatar marshallswain commented on August 22, 2024

Hey yeah. Nice. We could grow our family of supported providers.

from socketio.

mishoboss avatar mishoboss commented on August 22, 2024

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.

mishoboss avatar mishoboss commented on August 22, 2024

Hi, did you managed to reproduce it? Its really simple - just try to use socket.io-p2p instead of socket.io.

from socketio.

frank-dspeed avatar frank-dspeed commented on August 22, 2024

@mishoboss please prepare that simple repo for us i think we are doing enought work help is much wanted.

from socketio.

daffl avatar daffl commented on August 22, 2024

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.

frank-dspeed avatar frank-dspeed commented on August 22, 2024

@daffl i think you should reopen that as its easy to reproduce that demo and its a nice feature.

from socketio.

mishoboss avatar mishoboss commented on August 22, 2024

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.

frank-dspeed avatar frank-dspeed commented on August 22, 2024

@mishoboss the problem is why don't you do that :)

from socketio.

marshallswain avatar marshallswain commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.