Comments (8)
ping/pong
can be handled on the transport layer but this is mainly useful for apps using postMessage
API.
from aexs.
I was guessing that it is for WebSocket or so, but I can't get how it can be used in postMessage
interface. Can you explain it?
from aexs.
postMessage
is a simple API to send/broadcast messages additionally allowing us to specify a target
for the message. When a browser wallet extension connects to the SDK over postMessage
we don't really know(even right after the connect message) whether the wallet is present or not until we receive the next message or the sign
request from the SDK fails.
We can rely on the message failures or on the wallet letting SDK
know that it disconnecting but from my point of view using ping/pong
to detect wallet connection will provide a much better user experience as there will be no sudden changes/failures in the app and things can be handled gracefully.
from aexs.
Please, if possible, use the discussion link, if available, for issues related to specific AEXs.
from aexs.
@shekhar-shubhendu Are there any cases when wallet can't call wallet.disconnect.aepp
before closing? Anyway, aepp can poll aepp.get.address
method that shouldn't be expensive if such polling is needed in some weird case.
from aexs.
@shekhar-shubhendu this issue is still actual for AEX-5
from aexs.
@davidyuk will have to think about it. but most probably with latest version of aex-2 this should also be removed.
from aexs.
no longer relevant, AEX-5 is withdrawn. I am wondering if we should propose a new standard for wallet connections. seems like this has generally been a big pain in the past
from aexs.
Related Issues (20)
- AEX-1: Aeternity expansion process
- AEX-2: Third-party Wallet Provider Support HOT 3
- AEX-3: Secret storage format
- AEX-4: æternity wallet deep linking specification HOT 1
- AEX-5: Inter-Wallet Communication HOT 3
- AEX-6: Strategic Semantic Syntax Part 1: Contract Interaction Wrapper HOT 2
- AEX-7: Data Serialization HOT 2
- AEX-8: Message Signing
- AEX-9: Fungible Token Standard HOT 5
- AEX-10: Derivation path for deterministic wallets HOT 1
- AEX-11: Compliant Fungible Token Standard
- Verifiable off-chain state for accounts
- AEX-5: Simplify methods names HOT 1
- AEX-129: Data Serialization
- AEX-130: æpps Metadata Format Specification
- Proposal: Aliased denominations HOT 2
- Extension for AEX-9: Include payload HOT 2
- AEX-2 - passing config data to the wallet ? HOT 3
- Non-Fungible Token standard HOT 75
- Request for clarification and potential improvements: AEX-3
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 aexs.