System configuration

WebSocket, scheduled tasks and permissions.

Choose a connection type

In Site administration → Plugins → Activity modules, open KUET settings. The original document refers to this screen as “Jam QuizShow”.

The WebSocket server synchronises manual sessions for a single Moodle platform. Browsers connect over WSS. If the server is unavailable, users cannot join those sessions.

No socket

Select “Do not use socket” if you only need scheduled sessions. No further connection configuration is required, and manual modes will not be available when creating sessions.

Local WebSocket

Runs on the same server as Moodle; KUET starts it automatically when needed.

  • Port: an open port, 8080 by default.
  • Certificate: a valid SSL certificate for the server, in .crt or .pem format.
  • Private key: the matching key in .pem or .key format.

External WebSocket

Configure the external HTTPS URL and an open server port, 8080 by default.

  1. Download unimoodleservercli.php from KUET settings and upload it to the chosen server.
  2. Prepare the certificate and private key, and record their absolute paths.
  3. Run php unimoodleservercli.php in the server terminal.
  4. Enter the port and the absolute certificate and key paths when prompted.

The account running the process needs read access to both files. The administrator must maintain service availability and can monitor or stop it like any other process.

Certificates and connection test

Both local and external connections require an SSL certificate and private key valid for the server and trusted by browsers. Save the settings and use the connection test link to check that the socket is running and accepts secure connections.

Scheduled task

Find mod_kuet\task\active_session_management in Site administration → Server → Tasks → Scheduled tasks. It runs every minute by default, opening or closing sessions with configured dates. Disabling it or running it infrequently can delay those transitions.

Permissions and capabilities

  • mod/kuet:addinstance: create and configure activities; editing teachers and managers, at course context.
  • mod/kuet:view: access the activity; students, teachers, editing teachers and managers.
  • mod/kuet:managesessions: create, edit and delete sessions; teachers and managers.
  • mod/kuet:startsession: start and end sessions; teachers and managers.
  • mod/kuet:viewanonymousanswers: view answers marked anonymous in reports; assigned to the manager archetype by default.

Except for addinstance, these capabilities use the module context. Review assignments if you use custom roles.

Funded by the European Union