iink SDK Web

Answered

Need clarification for "Request" count

Hello, Im trying to create ReactJs App using this library
I need to clarify what count as request while using this library, for example
1. import iink-js and call iink.register(...) (socket open) count as 1 request right?
2. emit event 'exported' to get the result of my writing count as 1 request or this method does not count as 1 request because its included with open socket (number 1)?
3. I clear the canvas 4 times, then doing number 2 again count as 1 request or not?


Best Answer

Dear Maulana,

Thank you for contacting us and your questions.
Regarding what counts as a request, I recommend you refer to the "What counts as a request?" section of our pricing page: https://developer.myscript.com/pricing
With the Web socket API, a request includes all the exchanges between the 'socket open' and the 'socket close'. It is limited to 5 minutes, and 3 minutes if there are no exchanges.

Now, to answer your questions:
1-Yes, it will count as a request
2-It is included in the websocket open, it will not cost a request
3-Yes, if you clear 4 times, it will count a new request.

Best regards,

Olivier

1 Comment

Answer

Dear Maulana,

Thank you for contacting us and your questions.
Regarding what counts as a request, I recommend you refer to the "What counts as a request?" section of our pricing page: https://developer.myscript.com/pricing
With the Web socket API, a request includes all the exchanges between the 'socket open' and the 'socket close'. It is limited to 5 minutes, and 3 minutes if there are no exchanges.

Now, to answer your questions:
1-Yes, it will count as a request
2-It is included in the websocket open, it will not cost a request
3-Yes, if you clear 4 times, it will count a new request.

Best regards,

Olivier