This site includes a demo of an experimental Discourse ↔ Matrix chat bridge. The configured Discourse side is the General chat channel. That channel is currently mapped bidirectionally to the Matrix room on matrix.musaraj.com with room ID: !HizmVSBEQVwREThZXz:matrix.musaraj.com
To test from the Discourse side, log in to do2.musaraj.com, open the General chat channel, and send a message. You can also try replying, editing, deleting, reacting, or sending images. Then check the mapped Matrix room to confirm that the message and follow-up actions appear there correctly.
To test from the Matrix side, join/open the Matrix room on the matrix.musaraj.com homeserver and send a message there. Then check the General Discourse chat channel on do2 to confirm it appears in Discourse.
For the code supporting this see: