Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Session Management Methods #7

Open
pedrouid opened this Issue Mar 22, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@pedrouid
Copy link
Member

pedrouid commented Mar 22, 2019

There are 5 session managements methods: CreateSession, ApproveSession, RejectSession, updateSession and KillSession.

CreateSession: allows it to create a session request to establish to a connection with another peer (check L376)

ApproveSession: responds the session request with approved true and requires accounts array and chainId number, additionally it triggers the connect event (check L408)

RejectSession: responds the session request with approved false and passes empty accounts field and chainId field, additionally it triggers the disconnect event (check L447)

UpdateSession: sends a session update with approved true and passes new accounts field and chainId field, additionally it triggers the session_update event (check L472)

KillSession: sends a session update with approved false and passes empty accounts field and chainId field, additionally it triggers the disconnect event (check L472)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.