Giter Site home page Giter Site logo

Comments (4)

dbolser avatar dbolser commented on May 25, 2024 1

Somehow the static text doesn't 'talk to me' in teh way an animation would. e.g. if the websocket dies, the animation could stop?

2022-03-07_11-46

from robosats.

Reckless-Satoshi avatar Reckless-Satoshi commented on May 25, 2024

Hey @dbolser

Thanks a lot for the input and ideas!

Describe the solution you'd like
If the chat box appeared with the animated text (waiting for counterparty...) I would know the state wasn't 'on me' and that I'm waiting for someone in the background.

This is exactly how it works, right? You just follow the Contract box plain text instructions and it will tell you "waiting for <bot_name> to lock escrow / submit invoice. Then you will be able to chat"

Refreshing the page every 10 mins to make sure that something hasn't happened on a closed websocket or whatever.

Everything except the chat itself are HTTP requests that your browser is sending every X seconds. You probably won't miss it if you are looking at your browser. But there might be extra features that could be added to make sure people knows they are online and fine!

from robosats.

Reckless-Satoshi avatar Reckless-Satoshi commented on May 25, 2024

Got it!

from robosats.

Reckless-Satoshi avatar Reckless-Satoshi commented on May 25, 2024

Hey @dbolser

The new chat upgrade is very explicit about who is connected / disconnected. Two flags show on top "You: connected", "Peer: disconnected", as well as avatars will show a green or red dot over themselves.

If the connection drops, the chat websocket will keep trying to reconnect until successful. In addition, the "Send" button will be disabled if you are not connected and will display a "Connecting..." helper text below it. The chat will however not be shown until both users have finished the step before (has to be at Fiat exchange step).

I believe this fixes any reasonable concern about whether you or your counterpart are connected. If nothing comes up will close this issue in a few days.

from robosats.

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.