Dear Woongki Kim,
Thank you for contacting us,
This error message is handled by the messageModal defined in Editor.ts:
this.#messageModal=document.createElement("div")
this.#messageModal.classList.add("message-modal")
The corresponding css is defined in the iink.css by :
.ms-editor.message-modal.error-msg::before { content: url("data:image/svg+xml;base64..."); }
So if you don't want the image you can simply replace the previous block by:
.ms-editor.message-modal.error-msg::before { content: ""; }
In this case you would only have the text error message, for instance:
Best regards,
Gwenaëlle
One more precision about editor styling customization, you can also use a css custom class, as the my-custom-classes.css described in this section of the documentation:
https://developer.myscript.com/docs/interactive-ink/3.2/web/iinkts/styling
It is illustrated by this example:
https://myscript.github.io/iinkTS/examples/websocket/websocket_text_customize_editor_css.html
And its corresponding source code:
https://github.com/MyScript/iinkTS/blob/master/examples/websocket/websocket_text_customize_editor_css.html
Best regards,
Gwenaëlle
It seems that my question was not clearly conveyed. I would like to know how to maintain the socket connection. Is it unavoidable for the session to disconnect after a certain period of time? I would also like to know if there is a parameter to control the session’s connection duration.
Thank you for your update. We did indeed misunderstand your initial question, so thank you for the clarification.
As described on the pricing page (What counts as a request?), the WebSocket is automatically closed upon user inactivity:
- Either if the user is inactive for 3 minutes since init or clear without strokes.
- Or if the user is inactive for 5 minutes in a session with strokes.
These inactivity values cannot be changed.
Best regards,
Gwenaëlle
thank you for reply.
Is there a way to register an event listener to handle incoming WebSocket data?
I would like to provide specific handling for the user when the session is terminated.
Woongki Kim
When the socket remains connected for a certain amount of time, a cloud image like the one below appears. Is there a way to prevent it from showing?