API Docs for:
Show:

MathWSRecognizer Class

Math WebSocket recognizer interface

Constructor

MathWSRecognizer

(
  • callback
  • [host='cloud.myscript.com']
)

Parameters:

  • callback Function

    The WebSocket response callback

  • [host='cloud.myscript.com'] String optional

    Recognition service host

Methods

_computeHmac

(
  • input
  • applicationKey
  • hmacKey
)
private

Compute HMAC signature for server authentication

Parameters:

  • input String
  • applicationKey String
  • hmacKey String

continueWSRecognition

(
  • components
  • instanceId
)

Continue the recognition

Parameters:

getHost

() String | String |

Get the recognition service host

Returns:

String | String | :

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

startWSRecognition

(
  • components
  • [parameters]
)

Start the WebSocket session

Parameters:

takeUpHmacChallenge

(
  • applicationKey
  • challenge
  • hmacKey
)

Authenticate the WebSocket client end with a handshake of HMAC signature

Parameters:

  • applicationKey String
  • challenge String
  • hmacKey String