1.6.32 • Published 3 months ago

@demodesk/neko v1.6.32

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

neko-client

Connect to demodesk/neko backend with self contained vue component.

For community edition neko with GUI and plug & play deployment visit m1k1o/neko.

Installation

Code is published to public NPM registry and GitHub npm repository.

# npm command
npm i @demodesk/neko
# yarn command
yarn add @demodesk/neko

Build

You can set keyboard provider at build time, either novnc or the default guacamole.

# by default uses guacamole keyboard
npm run build
# uses novnc keyboard
KEYBOARD=novnc npm run build

Example

API consists of accessing Vue reactive state, calling various methods and subscribing to events. Simple usage:

<!-- import vue -->
<script src="https://unpkg.com/vue"></script>

<!-- import neko -->
<script src="./neko.umd.js"></script>
<link rel="stylesheet" href="./neko.css">

<div id="app">
  <neko ref="neko" server="http://127.0.0.1:3000/api" autologin autoplay />
</div>

<script>
new Vue({
  components: { neko },
  mounted() {
    // access state
    // this.$refs.neko.state.session_id
  
    // call methods
    // this.$refs.neko.setUrl('http://127.0.0.1:3000/api')
    // this.$refs.neko.login('username', 'password')
    // this.$refs.neko.logout()
  
    // subscribe to events
    // this.$refs.neko.events.on('room.control.host', (id) => { })
  },
}).$mount('#app')
</script>
1.6.32

3 months ago

1.6.31

8 months ago

1.6.30

8 months ago

1.6.28

10 months ago

1.6.27

10 months ago

1.6.29

9 months ago

1.6.26

11 months ago

1.6.25

11 months ago

1.6.20

1 year ago

1.6.22

1 year ago

1.6.21

1 year ago

1.6.24

11 months ago

1.6.23

12 months ago

1.6.19

1 year ago

1.6.17

1 year ago

1.6.18

1 year ago

1.6.16

1 year ago

1.6.15

1 year ago