QVAC Logo

stopQVACProvider( )

Stops a running provider service and leaves the specified topic.

function stopQVACProvider(params: { topic: string }): Promise

Parameters

NameTypeRequired?Description
params\{ topic: string \}An object containing the topic of the provider to stop
FieldTypeRequired?Description
topicstringThe Hyperswarm topic of the running provider to stop and leave

Returns

Promise

Throws

ErrorWhen
When the response type is not "stopProvide" or the request fails

On this page