File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 99# Matrix JavaScript SDK
1010
1111This is the [ Matrix] ( https://matrix.org ) Client-Server SDK for JavaScript and TypeScript. This SDK can be run in a
12- browser or in Node.js or in Deno .
12+ browser or in Node.js.
1313
1414The Matrix specification is constantly evolving - while this SDK aims for maximum backwards compatibility, it only
1515guarantees that a feature will be supported for at least 4 spec releases. For example, if a feature the js-sdk supports
@@ -55,16 +55,7 @@ client.publicRooms(function (err, data) {
5555See below for how to include libolm to enable end-to-end-encryption. Please check
5656[ the Node.js terminal app] ( examples/node ) for a more complex example.
5757
58- ## In Deno
59-
60- ``` javascript
61- import * as sdk from " npm:matrix-js-sdk" ;
62- const client = sdk .createClient ({ baseUrl: " https://matrix.org" });
63- await client .publicRooms (function (err , data ) {
64- console .log (" Public Rooms: %s" , JSON .stringify (data));
65- });
66- ```
67- you can run with ` deno run --allow-net myclient.ts `
58+ You can also use the sdk with [ Deno] ( https://deno.land/ ) (` import npm:matrix-js-sdk ` ) but its not officialy supported.
6859
6960To start the client:
7061
You can’t perform that action at this time.
0 commit comments