Skip to content

bug: NodeJS does not exit after node.stop() is called #2210

@dbu9

Description

@dbu9

Run

import { createLightNode } from "@waku/sdk";

async function main() {
	
	// Create and start a Light Node
	const node = await createLightNode({ defaultBootstrap: true });
	await node.start();
	console.log("Node started");
	
	// Use the stop() function to stop a running node
	await node.stop();
	await node.libp2p.stop();
	console.log("Stopped");
	
}

main();

Output:

Ignore WebSocket connection failures
Waku tries to discover peers and some of them are expected to fail
Node started
Stopped

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions