@novnc/novnc
Advanced tools
Comparing version 1.3.0-g80a7c1d to 1.3.0-g98664c7
@@ -54,3 +54,3 @@ /* | ||
for (let i = 0; i < pixels; i++) { | ||
data[i * 4 + 3] = 255; | ||
data[index + i * 4 + 3] = 255; | ||
} | ||
@@ -57,0 +57,0 @@ |
@@ -89,5 +89,9 @@ # noVNC API | ||
[`disconnect`](#disconnected) | ||
[`disconnect`](#disconnect) | ||
- The `disconnect` event is fired when the `RFB` object disconnects. | ||
[`serververification`](#serververification) | ||
- The `serververification` event is fired when the server identity | ||
must be confirmed by the user. | ||
[`credentialsrequired`](#credentialsrequired) | ||
@@ -122,2 +126,7 @@ - The `credentialsrequired` event is fired when more credentials must | ||
[`RFB.approveServer()`](#rfbapproveserver) | ||
- Proceed connecting to the server. Should be called after the | ||
[`serververification`](#serververification) event has fired and the | ||
user has verified the identity of the server. | ||
[`RFB.sendCredentials()`](#rfbsendcredentials) | ||
@@ -127,3 +136,3 @@ - Send credentials to server. Should be called after the | ||
[`RFB.sendKey()`](#rfbsendKey) | ||
[`RFB.sendKey()`](#rfbsendkey) | ||
- Send a key event. | ||
@@ -149,3 +158,3 @@ | ||
[`RFB.clipboardPasteFrom()`](#rfbclipboardPasteFrom) | ||
[`RFB.clipboardPasteFrom()`](#rfbclipboardpastefrom) | ||
- Send clipboard contents to server. | ||
@@ -219,2 +228,16 @@ | ||
#### serververification | ||
The `serververification` event is fired when the server provides | ||
information that allows the user to verify that it is the correct server | ||
and protect against a man-in-the-middle attack. The `detail` property is | ||
an `Object` containing the property `type` which is a `DOMString` | ||
specifying which type of information the server has provided. Other | ||
properties are also available, depending on the value of `type`: | ||
`"RSA"` | ||
- The server identity is verified using just a RSA key. The property | ||
`publickey` is a `Uint8Array` containing the public key in a unsigned | ||
big endian representation. | ||
#### credentialsrequired | ||
@@ -279,2 +302,12 @@ | ||
#### RFB.approveServer() | ||
The `RFB.approveServer()` method is used to signal that the user has | ||
verified the server identity provided in a `serververification` event | ||
and that the connection can continue. | ||
##### Syntax | ||
RFB.approveServer( ); | ||
#### RFB.sendCredentials() | ||
@@ -281,0 +314,0 @@ |
@@ -69,3 +69,3 @@ "use strict"; | ||
for (var _i = 0; _i < pixels; _i++) { | ||
data[_i * 4 + 3] = 255; | ||
data[index + _i * 4 + 3] = 255; | ||
} | ||
@@ -72,0 +72,0 @@ |
{ | ||
"name": "@novnc/novnc", | ||
"version": "1.3.0-g80a7c1d", | ||
"version": "1.3.0-g98664c7", | ||
"description": "An HTML5 VNC client", | ||
@@ -5,0 +5,0 @@ "browser": "lib/rfb", |
@@ -215,2 +215,3 @@ ## noVNC: HTML VNC Client Library and Application | ||
* tight encoding : Michael Tinglof (Mercuri.ca) | ||
* RealVNC RSA AES authentication : USTC Vlab Team | ||
@@ -217,0 +218,0 @@ * Included libraries: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1173987
104
29434
225