This component is the one that knows the port-number, so it is well suited to do this.
It also provides the /poll service and is best placed to describe the supported actions and reported variables.
The id (name) of the remote connected instance could be used to customise the names of the blocks and variables. So a service-protocol definition should be able to mention placeholder "Send message to %peer" which gets transformed into a block labeled "Send message to Karel1980"
Technically:
proposed URI: /get-extension
warn if the extension file is not retrieved from localhost: since that is the only location where this file is supposed to be used.
allow to override the warning using some modified request (ajax-post / req-param / special header)
use the content-disposition header to suggest the client to save the file using a proper specific filename --> generate the filename to include the service-protocol-name and the connected-peer + give it the expected *.s2e extension
Also: think about self-documenting the follow-up steps kids will need to do after this connection is made.
This component is the one that knows the port-number, so it is well suited to do this. It also provides the /poll service and is best placed to describe the supported actions and reported variables.
The id (name) of the remote connected instance could be used to customise the names of the blocks and variables. So a service-protocol definition should be able to mention placeholder "Send message to %peer" which gets transformed into a block labeled "Send message to Karel1980"
Technically:
Also: think about self-documenting the follow-up steps kids will need to do after this connection is made.