@shiyanlou/guacamole-client
v1.1.3
Published
Shiyanlou's guacamole-client.
Downloads
5
Readme
@shiyanlou/guacamole-client
安装
$ npm install @shiyanlou/guacamole-client --save
使用
import GuacamoleCreator from '@shiyanlou/guacamole-client'
// 获取连接环境所需数据
const el = document.getElementById('display')
const tunnelUrl = 'tunnel url'
const token = 'guacamole token'
// 连接环境
const guac = new GuacamoleCreator(tunnelUrl)
guac.connect(el, token)
// 断开连接
guac.disconnect()
// 重新连接
guac.reconnect()
更多实例方法请查看源码。