server to use defined subprotocol?
Closed this issue · 3 comments
I was reading across the docs and wondering if the server is supposed to use the subprotocol that was defined in the previous step, rather than a static string? As we do with the client
defined as part of the project
docs/guide/starting/project.md
Lines 18 to 22 in 3e83837
imported for server but afterwards not used for
Lines 22 to 34 in 3e83837
because the client does
Lines 13 to 28 in 3e83837
Server needs subprotocol to mark actions created on this server by server.log.add(action)
or server.process(action)
.
Later you can work with old actions from log knowing what server on server created this action. It is useful in big production projects with many changes.
Does it answer your question? Feel free to ask extra details if needed.
sorry, maybe me asking this way made the conversation go this way.
I'm mainly wondering, if the SUBPROTOCOL
const that is imported shouldn't be used instead of the static '1.0.0'
that is currently displayed as part of the docs.
as in: should this be changed in the docs to show a coherent usage of the configuration.