https://github.com/tinode/tinode-js
Tinode javascript bindings
https://github.com/tinode/tinode-js
chat chat-application javascript
Last synced: about 1 year ago
JSON representation
Tinode javascript bindings
- Host: GitHub
- URL: https://github.com/tinode/tinode-js
- Owner: tinode
- License: apache-2.0
- Created: 2016-01-05T18:55:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T15:08:44.000Z (over 1 year ago)
- Last Synced: 2025-03-28T08:08:46.823Z (over 1 year ago)
- Topics: chat, chat-application, javascript
- Language: JavaScript
- Size: 25.6 MB
- Stars: 53
- Watchers: 8
- Forks: 45
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Javascript bindings for Tinode
This SDK implements [Tinode](https://github.com/tinode/chat) client-side protocol for the browser based applications. See it in action
at https://web.tinode.co/ and https://sandbox.tinode.co/ ([full source](https://github.com/tinode/webapp)).
This is **not** a standalone project. It can only be used in conjunction with the [Tinode server](https://github.com/tinode/chat).
Regularly released NPM packages are at https://www.npmjs.com/package/tinode-sdk
You may include the latest standalone minified SDK into your html file as
```html
```
or while developing as
```html
```
## Getting support
* Read [client-side](http://tinode.github.io/js-api/) and [server-side](https://github.com/tinode/chat/blob/master/docs/API.md) API documentation.
* For support, general questions, discussions post to [https://groups.google.com/d/forum/tinode](https://groups.google.com/d/forum/tinode).
* For bugs and feature requests [open an issue](https://github.com/tinode/tinode-js/issues/new).
* Use https://tinode.co/contact for commercial inquiries.
## Helping out
* If you appreciate our work, please help spread the word! Sharing on Reddit, HN, and other communities helps more than you think.
* Consider buying paid support: https://tinode.co/support.html
* If you are a software developer, send us your pull requests with bug fixes and new features.
* If you use the SDK and discover bugs or missing features, let us know by filing bug reports and feature requests. Vote for existing [feature requests](https://github.com/tinode/chat/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A%22feature+request%22) you find most valuable.
## Node JS compatibility
This SDK is intended to be used in a browser. To use `tinode-sdk` in Node JS environment (such as on a server), you have to polyfill network providers, for example with [ws](https://www.npmjs.com/package/ws) and [xmlhttprequest](https://www.npmjs.com/package/xmlhttprequest) or [xhr](https://www.npmjs.com/package/xhr), as well as `indexedDB` with something like [fake-indexeddb](https://www.npmjs.com/package/fake-indexeddb):
```js
Tinode.setNetworkProviders(require('ws'), require('xmlhttprequest'));
Tinode.setDatabaseProvider(require('fake-indexeddb'));
this.tinode = new Tinode(...);
```
`URL.createObjectURL()` and related methods were added in Node v16.7.0. The SDK is unlikely to work correctly with earlier versions of Node.