Files
simplex-chat/packages/simplex-chat-client/typescript
Evgeny Poberezkin b7860ad0e8 simplex-chat server & JavaScript/TypeScript SDK/client (#539)
* simplex-chat server

* typescript types for chat commands and command serialization

* typescript ChatResponse type

* more types

* more types

* websocket chat client

* aligb ts/haskell types

* chat server & TS client via websockets - it works

* TS chat client test

* TS chat client test

* update test

* more api functions

* more api methods, refactor, readme

* squaring chat bot example, fixes

* update readme

* remove console.log

* npm version 0.1.0
2022-05-13 19:44:03 +01:00
..

SimpleX Chat JavaScript client

Quick start

npm i simplex-chat

See example of chat bot in squaring-bot.js

Documentation

Please refer to:

  • available client API - client.ts.
  • available commands - ChatCommand type in command.ts - if some command is not created as a ChatClient method, you can pass any command object to sendChatCommand method, or if the type for some command is not available you can pass command string (same strings as supported in terminal/mobile API) to sendChatCmdStr method.
  • available chat messages - ChatResponse type in response.ts.

Please note: you should NOT use local display names that are supported in terminal app, as they can change when contact profile is updated and you can have race conditions - use commands that use chat IDs.

Lisense

AGPL v3