mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Pass VNC server name in options.
This commit is contained in:
@@ -5,7 +5,9 @@ var debug = require('debug')('vnc:connection')
|
||||
|
||||
var PixelFormat = require('./pixelformat')
|
||||
|
||||
function VncConnection(conn) {
|
||||
function VncConnection(conn, options) {
|
||||
this.options = options
|
||||
|
||||
this._bound = {
|
||||
_errorListener: this._errorListener.bind(this)
|
||||
, _readableListener: this._readableListener.bind(this)
|
||||
@@ -34,7 +36,7 @@ function VncConnection(conn) {
|
||||
, blueShift: 0
|
||||
})
|
||||
this._requireServerPixelFormat = true
|
||||
this._serverName = 'stf'
|
||||
this._serverName = this.options.name
|
||||
|
||||
this._clientVersion = null
|
||||
this._clientShare = false
|
||||
|
||||
Reference in New Issue
Block a user