Skip to content

Protocol Reference

This document describes the postMessage communication protocol between the Dino-GSP embedded canvas and the parent page.

Type definitions (e.g. FileContent, Slide) are available in the algeo-protocol repository.

Error Codes (Embed Protocol)

CodeDescription
EMBED_LOAD_SHARE_FAILEDLoad share failed (share not found, parse error, etc.; loadShareById)
EMBED_LOAD_FILE_FAILEDLoad file failed (invalid content; loadFile)
EMBED_APPLY_CONTENT_FAILEDFailed to apply content to canvas
EMBED_SWITCH_SLIDE_FAILEDSwitch slide failed
EMBED_INVALID_SLIDE_INDEXInvalid slide index
EMBED_GET_SLIDE_COUNT_FAILEDFailed to get slide count
EMBED_INVALID_REPL_COMMANDInvalid REPL command (empty or non-string)
EMBED_REPL_EXECUTE_FAILEDREPL execution failed
EMBED_UNKNOWN_METHODUnknown postMessage method
EMBED_UNKNOWN_ERRORUnknown error
EMBED_BAD_REQUESTBad request
EMBED_IFRAME_NOT_READYiframe not ready
EMBED_TIMEOUTRequest timeout
EMBED_DESTROYEDInstance destroyed