Giter Club home page Giter Club logo

peer-connect's People

Contributors

nilinswap avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

peer-connect's Issues

do react-styledComponents migration of peer-connect

What to do?
Give a react version of nilinswap/peer-connect.
Use react framework for frontend to make peer-connect work. so basically the main.js that is exported to a foreign site to use our peer-connect feature...that main.js should be generated in react framework. It is only expected to use reactjs framework but the source code can be just written in typescript (or javascript.) In fact, one should try to use same js code for nilinswap/peer-connect rather than writing a new version in reactjs.

feasible?
It can be a stupid task which is not possible. so I have no idea of this. At the end, we would learn something.

expected pace?
It's very open-ended task therefore feel free to do this in small experiments and checkpoints and we will discuss the results before going ahead.

why?

  1. To compare how much of an overhead react way of handling dom puts into a page.
  2. we want to see styled-components solving our css-in-js thing.
  3. We might have to come to this setup later when our themes are more customisable and when our designs are more complex.

summary

use this link to start from a boiler plate. You already know the js code for peer-connect. What minimum changes should you do to look the boiler-plate page look and work like peer-connect?

use custom event to connect with peer

What to do?
create a custom event say CE. on trigger, this will save the remotePeerId. Instead of connect button directly setting it. let connect button fire this event. This is a subProblem of event-based issue for easy-pluggable.

why?
this will be used. next, we will create a server to store identifier - peerid map. We will provide two apis. one will be on singleId(like gameId) and other will be on (remoteClientPeerId) both are behaviourly same and would hit the server and get the peerjs remotePeerId. on successful reply, we will fire CE and remotePeerId is saved and boom now it should work.

Resources?
custom events in js

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.