MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / handle_message

Method handle_message

webiojs/src/handlers/base.ts:16–21  ·  view source on GitHub ↗
(msg: Command)

Source from the content-addressed store, hash-verified

14 }
15
16 handle_message(msg: Command) {
17 if (msg.command == 'close_session')
18 this.session.close_session();
19 else if (msg.command == 'set_session_id')
20 this.session.webio_session_id = msg.spec;
21 }
22}
23
24export class CommandDispatcher {

Callers

nothing calls this directly

Calls 1

close_sessionMethod · 0.65

Tested by

no test coverage detected