ScratchLinkWebSocket

ScratchLinkWebSocket

This class provides a ScratchLinkSocket implementation using WebSockets, attempting to connect with the locally installed Scratch-Link.

To connect with ScratchLink without WebSockets, you must implement all of the public methods in this class.

  • open()
  • close()
  • setOn[Open|Close|Error]
  • setHandleMessage
  • sendMessage(msgObj)
  • isOpen()

Constructor

new ScratchLinkWebSocket()