IoTize Device Com WebSocket
Installation
Browser
Download latest version or use this link to load from jsdeliver.
<script src="https://cdn.jsdelivr.net/npm/@iotize/device-com-websocket.js@latest/dist/iotize-device-com-websocket.min.js" />
npm
npm install @iotize/device-com-websocket.js
Usage
// Library name: IoTizeDeviceComWebsocket
let websocketProtocol = IoTizeDeviceComWebsocket.WebSocketProtocol({
url: 'tcp://localhost:2000' // Server url
});
// ...
Typings
Typings are provided with the library.
import { WebSocketProtocol } from '@iotize/device-com-websocket.js';
// ...
For more informations, read the documentation.