FAQ's

Here's a list of Frequently asked questions about Matrix..

Intro

Let’s explore how we would make a very simple Matrix client, with only the ability to perform an initial sync, and to get member lists and the timeline for rooms of our choice.

Basics

This article will explore the Matrix Client-Server API, making use of the matrix-js-sdk. Later articles may discuss making the underlying calls. Specifically we will cover:

  • login
  • simple syncing
  • listening for timeline events
  • access the MatrixInMemoryStore
  • sending messages to rooms
  • how to respond to specific messages, as a bot would

Who and How

We’ll use Node.js as our environment, though the matrix-js-sdk can also be used directly in the browser.

Before we start, make sure you have Node.js and NPM installed: follow instructions at nodejs.org for your platform. Then create a new directory to work in:

Concept

Once you’re ready, the first thing to do is install the matrix-js-sdk from NPM:

We include the SDK in our source exactly as expected:

Practical

Once you’re ready, the first thing to do is install the matrix-js-sdk from NPM:

Usage

We include the SDK in our source exactly as expected:

As a user

Once you’re ready, the first thing to do is install the matrix-js-sdk from NPM:

We include the SDK in our source exactly as expected:

Tech

We include the SDK in our source exactly as expected:

Once you’re ready, the first thing to do is install the matrix-js-sdk from NPM:

FAQ's

© 2019 The Matrix.org Foundation