iink SDK Web

Answered

Any example of WebSocket restore message?

I've tesing a restore message the document below described.

https://developer.myscript.com/docs/interactive-ink/1.4/web/websockets/messages/#restore-an-iink-session

Sent message:

{"type":"restore",
"applicationKey":"...",
"iinkSessionId":"...",
"xDpi":96,"yDpi":96,
"viewSizeWidth":747,"viewSizeHeight":192
}

I confirmed that iinkSessionId was set correctly via chrome developer console.
But getting the error.

{"type":"error","message":"Json mapping error: ","code":"api.mapping.error"}


Does someone have any thought or example on this?


Best Answer

Dear Shinji Yamada San,


thank you for the update.


We will update the documentation accordingly.


Best regards,


Olivier


Dear Shinji Yamada San,


thank you for contacting us.


Can you please try to replace the "restore" type by "restoreIInkSession"?

{"type":"restoreIInkSession",
"applicationKey":"...",
"iinkSessionId":"...",
"xDpi":96,"yDpi":96,
"viewSizeWidth":747,"viewSizeHeight":192
}


Let us know if this works.


Best regards,


Olivier

Hi, Oliver

Thank you for the response.
It works perfectly!!

And, it would be good it is documented precisely.


Answer

Dear Shinji Yamada San,


thank you for the update.


We will update the documentation accordingly.


Best regards,


Olivier