* 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
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 -
ChatCommandtype in command.ts - if some command is not created as a ChatClient method, you can pass any command object tosendChatCommandmethod, or if the type for some command is not available you can pass command string (same strings as supported in terminal/mobile API) tosendChatCmdStrmethod. - available chat messages -
ChatResponsetype 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.