When a QEWD application is started, it triggers the EWD.start() function which establishes a web socket connection to the QEWD backend. This connection registers the client application within QEWD. A session is created, assigned a token, and returned to the client. This allows the client and backend to communicate securely using the session token as a reference.