Implementation of client-server matrix API in haxe using HaxeHttpClient.

Endes 7704de3d41 A lot o fixes 6 years ago
src 7704de3d41 A lot o fixes 6 years ago
test 2d2c9aac44 Fixes. 6 years ago
.gitignore 0053a32e8f Setup lib 7 years ago
LICENSE 0ecbf00fd9 Initial commit 7 years ago
README.md e595ad81ba Implemented third party invite and updated the readme. 6 years ago
build-test.hxml 2d2c9aac44 Fixes. 6 years ago
haxelib.json 7704de3d41 A lot o fixes 6 years ago

README.md

haxe-matrix-im

Implementation of client-server matrix API in haxe using akifox-asynchttp. Because of it, tecnically only works on CPP/NEKO/JAVA/FLASH and not in JAVASCRIPT because JAVASCRIPT only support POST and Get Methods. But, is only tested on neko platform, if you test in other, let me know.

Usage

Importing:

import beartek.matrix_im.client.Conection;

Login in:

var con = new Conection(server);
con.on_error = function( e : Dynamic ) : Void {
  throw 'Error: ' + e;
}

con.session.login_with_pass(user, password, device_name, function( respose : Dynamic ) : Void {
  trace(respose.access_token); //The access_token will be actumaticaly stored for future request until you logout.
});

Log out:

con.session.logout(function() : Void {
  //Loged out
});

For more examples see the Test_client class in test/beartek/matrix_im/client and for more info see Matrix Client-Server API docs (This library does not implement the API equal than described in the matrix docs).

TODO

  • Implement some modules: Push Notifications, End-to-End Encryption, Send-to-Device messaging, Server Side Search, Event Context and CAS-based client login.
  • Add documetation to the class, types and functions.
  • Make better README.

by NetaLabTek