https://github.com/nttcom/skyway-siru-client
SkyWay IoT SDK room utility for client app
https://github.com/nttcom/skyway-siru-client
Last synced: about 2 months ago
JSON representation
SkyWay IoT SDK room utility for client app
- Host: GitHub
- URL: https://github.com/nttcom/skyway-siru-client
- Owner: nttcom
- License: other
- Created: 2017-06-02T21:03:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T01:35:25.000Z (almost 8 years ago)
- Last Synced: 2025-08-09T16:22:16.509Z (8 months ago)
- Language: JavaScript
- Size: 5.39 MB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SiRu-client
SkyWay IoT SDK room utility for client
## snipet
**browser**
```javascript
// obtain APIKEY from skyway.io.
// Don't forget to config your domain and APIKEY setting in our Dashboard https://webrtc.ecl.ntt.com/en/login.html.
const client = new SiRuClient('myroom', {key: 'YOUR_API_KEY'})
client.on('connect', () => {
client.on('device:connected', (uuid, profile) => {
// fetch echo api
client.fetch( uuid+'/echo/hello' )
.then(res => res.text())
.then(text => console.log(text))
// request remote camera streaming
client.requestStreaming(uuid)
.then(stream => video.srcObject = stream)
// subscribe each topic
client.subscribe('testtopic/+')
})
client.on('message', (topic, mesg) => {
console.log(topic, mesg)
})
})
```
# Install
## npm
```bash
$ npm install skyway-siru-client
```
## prebuilt
* https://nttcom.github.io/skyway-siru-client/dist/skyway-siru-client.min.js
## API reference
* [SiRuClient](docs/SiRuClient.md)
* [Response](docs/response.md)
---
Copyright. NTT Communicaations Corporation All rights reserved.