API Docs for:
Show:

AbstractWSRecognizer Class

Abstract WebSocket recognizer interface

Methods

_computeHmac

(
  • input
  • applicationKey
  • hmacKey
)
private

Compute HMAC signature for server authentication

Parameters:

  • input String
  • applicationKey String
  • hmacKey String

getHost

() String | String |

Get the recognition service host

Returns:

String | String | :

getPrecision

() Number

Get precision

Returns:

Number:

initWSRecognition

(
  • applicationKey
)

Initialize the WebSocket

Parameters:

  • applicationKey String

resetWSRecognition

()

Reset the WebSocket recognition session

setHost

(
  • UNKNOWN
)

Set the recognition service host

Parameters:

  • UNKNOWN String

setParameters

(
  • parameters
)

Set parameters

Parameters:

setPrecision

(
  • precision
)

Set precision

Parameters:

  • precision Number

takeUpHmacChallenge

(
  • applicationKey
  • challenge
  • hmacKey
)

Authenticate the WebSocket client end with a handshake of HMAC signature

Parameters:

  • applicationKey String
  • challenge String
  • hmacKey String