a http server that can be used to open the websocket
return the library metadata (= library.json) for a library
return an arbitrary JSON file for a specific library; throw an error if the file doesn't exist or if it's not JSON
converts the request that is used to initiate the websocket connection to the user object for the user who is making the request; this is used to authenticate a user who connects to the websocket
returns the permission a user has to a specific content object
returns the metadata (h5p.json) for a piece of content
returns the parameters (content.json) for a piece of content
Optional
options: { baseUrl?: string }
Main entry point into the share-state functionality.
This class opens a Websocket on the server to which clients can connect to and send ops via ShareDB to modify the shared state. The shared state validates the changes against the library schema, propagates them to the other connected clients and persists the state.