AbstractWSRecognizer Class
Abstract WebSocket recognizer interface
Constructor
AbstractWSRecognizer
()
Item Index
Methods
_computeHmac
(
private
-
input -
applicationKey -
hmacKey
Compute HMAC signature for server authentication
Parameters:
-
inputString -
applicationKeyString -
hmacKeyString
close
()
Close the socket
getHost
()
String | String |
Get the recognition service host
Returns:
String | String | :
getPrecision
()
Number
Get precision
Returns:
Number:
initWSRecognition
(
-
applicationKey
Initialize the WebSocket
Parameters:
-
applicationKeyString
open
()
Open the socket
resetWSRecognition
()
Reset the WebSocket recognition session
setHost
(
-
UNKNOWN
Set the recognition service host
Parameters:
-
UNKNOWNString
setPrecision
(
-
precision
Set precision
Parameters:
-
precisionNumber
takeUpHmacChallenge
(
-
applicationKey -
challenge -
hmacKey
Authenticate the WebSocket client end with a handshake of HMAC signature
Parameters:
-
applicationKeyString -
challengeString -
hmacKeyString
