JSPM

  • Created
  • Published
  • Downloads 1212
  • Score
    100M100P100Q140829F
  • License Apache-2.0

Tinode SDK

Package Exports

  • tinode-sdk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tinode-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Javascript bindings for Tinode

See demo at http://api.tinode.co/ (source)

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

<script crossorigin="anonymous"
  src="https://unpkg.com/tinode-sdk/umd/tinode.prod.js">
</script>

or while developing as

<script crossorigin="anonymous"
  src="https://unpkg.com/tinode-sdk/umd/tinode.dev.js">
</script>

Getting support

Node JS compatibility

To use tinode-sdk as a Node JS dependency, you have to provide a WebSocket provider:

  Tinode.setWebSocketProvider(require('ws'));
  this.tinode  = new Tinode(...);