basic_server.js (430B)
1#!/usr/bin/env node 2 3const GuacamoleLite = require('guacamole-lite'); 4 5const websocketOptions = { 6 port: 8080 // we will accept connections to this port 7}; 8 9const guacdOptions = { 10 port: 4822 // port of guacd 11}; 12 13const clientOptions = { 14 crypt: { 15 cypher: 'AES-256-CBC', 16 key: 'MySuperSecretKeyForParamsToken12' 17 } 18}; 19 20const guacServer = new GuacamoleLite(websocketOptions, guacdOptions, clientOptions);