Dear Biplob,
Thank you for contacting us.
First, we would like to make two remarks about application keys:
We are not sure to understand what you are trying to achieve and what you mean by "connect my WebSocket server to my script cloud socket server"
For a Web Socket based project we recommend you using the iinkTS library that makes the integration of handwriting recognition and interactive ink easier in any web application.
Then you can integrate your application and deploy it by your own web server as described in the https://developer.myscript.com/getting-started/web page.
Please, share with us more context on what you are trying to do, as we don't undertand why you want to use a WebSocket server
Best regards,
Gwenaëlle
Dear Biplob,
Thank you for your update.
We don't have any experience of such an integration nor any example to share with you.
If you encounter Access not granted error, it is likely due to your hmac computation that is not correct: either the way you compute it or the data on which you compute it.
You may refer to this post that illustrates such a computation in javascript : https://developer-support.myscript.com/support/discussions/topics/16000031800
or to the iink-ts source code: https://github.com/MyScript/iinkTS/blob/master/src/utils/crypto.ts and https://github.com/MyScript/iinkTS/blob/master/src/recognizer/WSRecognizer.ts
Best regards,
Gwenaëlle
Biplob.asanibir
I want to connect my local socket server to my script socket server.
here is my code:
when I send a message using the Postman WebSocket client, it's connected to the server and gets back a response. see the below image.
after sending an HMAC message, I get the error for my server.
this is the javascript code for computing the HMAC code.
Error:
but when I connect direct Myscript server -> wss://webdemoapi.myscript.com/api/v4.0/iink/document
then the same HMAC code and other things work perfectly, not getting any errors.
So where is my problem? how can solve the issue? or How do I connect my WebSocket server to my script cloud socket server?