Godot Matrix SDK
by cyclikal
4
Godot Matrix SDK
A Matrix SDK for Godot written in GDScript.
Please note, this is a work in progress and is primarily for my learning purposes.
Features
To-Do
Lots of things, but noting some below:
- Create a Login flow (using a directly provided
access_token
for now)- Validate provided homeserver URL
- Get delegated homeserver URL from
.well-known
files, if applicable.
- Get delegated homeserver URL from
- Validate
access_token
against homeserver (/ delegated homeserver)- Create function to construct
headers
PackedStringArray for you following validation ofaccess_token
- Create function to construct
- Auto-populate MatrixClientServer variables after successful "Login"
- Validate provided homeserver URL
- Document structure of MatrixClientServerResponse
- Provide sample code snippets for using functions returning this
- Checking for errors (and displaying error message)
- Checking for success
- Accessing the resposne
- Probably provide helper functions within MatrixClientServerReponse to do this for you?
- Provide sample code snippets for using functions returning this
- Figure out why the 3 OpenAPI YAMLs for
Authenicated Content Repository
,Content Repository
andRelations
API don't haveSchema
definitions and re-produce them as functions (like the rest)
Installation
- Open Godot, click
AssetLib
from the top, thenImport...
. - Browse and select the downloaded ZIP file.
- Accept default import settings.
- Open Project Settings, Plugins, Enable
Godot Matrix SDK
How to use
- Add a MatrixClientServer node to your scene
- Reference the node from your desired script i.e.
@onready var matrix_client_server: MatrixClientServer = $MatrixClientServer
- Provide
access_token
,homeserver
andheaders
for functions requiring a Matrix Account (this will be fixed / made better in a future update)
Download
Version0.1.0
Download Now
Support
If you need help or have questions about this plugin, please contact the author.
Contact Author