MCPcopy Create free account
hub / github.com/e2b-dev/desktop / stop

Method stop

packages/js-sdk/src/sandbox.ts:699–708  ·  view source on GitHub ↗

* Stop the VNC server.

()

Source from the content-addressed store, hash-verified

697 * Stop the VNC server.
698 */
699 public async stop(): Promise<void> {
700 if (await this.checkVNCRunning()) {
701 await this.desktop.commands.run('pkill x11vnc')
702 }
703
704 if (this.novncHandle) {
705 await this.novncHandle.kill()
706 this.novncHandle = null
707 }
708 }
709
710 /**
711 * Set the VNC command to start the VNC server.

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 1

checkVNCRunningMethod · 0.95

Tested by

no test coverage detected