2021-09-27 22:11:35 +03:00
<!doctype html>
< html class = "default no-js" >
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< title > FluencePeer | @fluencelabs/fluence< / title >
< meta name = "description" content = "Documentation for @fluencelabs/fluence" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< link rel = "stylesheet" href = "../assets/css/main.css" >
< script async src = "../assets/js/search.js" id = "search-script" > < / script >
< / head >
< body >
< header >
< div class = "tsd-page-toolbar" >
< div class = "container" >
< div class = "table-wrap" >
< div class = "table-cell" id = "tsd-search" data-index = "../assets/js/search.json" data-base = ".." >
< div class = "field" >
< label for = "tsd-search-field" class = "tsd-widget search no-caption" > Search< / label >
< input id = "tsd-search-field" type = "text" / >
< / div >
< ul class = "results" >
< li class = "state loading" > Preparing search index...< / li >
< li class = "state failure" > The search index is not available< / li >
< / ul >
< a href = "../index.html" class = "title" > @fluencelabs/fluence< / a >
< / div >
< div class = "table-cell" id = "tsd-widgets" >
< div id = "tsd-filter" >
< a href = "#" class = "tsd-widget options no-caption" data-toggle = "options" > Options< / a >
< div class = "tsd-filter-group" >
< div class = "tsd-select" id = "tsd-filter-visibility" >
< span class = "tsd-select-label" > All< / span >
< ul class = "tsd-select-list" >
< li data-value = "public" > Public< / li >
< li data-value = "protected" > Public/Protected< / li >
< li data-value = "private" class = "selected" > All< / li >
< / ul >
< / div >
< input type = "checkbox" id = "tsd-filter-inherited" checked / >
< label class = "tsd-widget" for = "tsd-filter-inherited" > Inherited< / label >
< input type = "checkbox" id = "tsd-filter-externals" checked / >
< label class = "tsd-widget" for = "tsd-filter-externals" > Externals< / label >
< / div >
< / div >
< a href = "#" class = "tsd-widget menu no-caption" data-toggle = "menu" > Menu< / a >
< / div >
< / div >
< / div >
< / div >
< div class = "tsd-page-title" >
< div class = "container" >
< ul class = "tsd-breadcrumb" >
< li >
< a href = "../modules.html" > @fluencelabs/fluence< / a >
< / li >
< li >
< a href = "FluencePeer.html" > FluencePeer< / a >
< / li >
< / ul >
< h1 > Class FluencePeer< / h1 >
< / div >
< / div >
< / header >
< div class = "container container-main" >
< div class = "row" >
< div class = "col-8 col-content" >
< section class = "tsd-panel tsd-comment" >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > This class implements the Fluence protocol for javascript-based environments.
It provides all the necessary features to communicate with Fluence network< / p >
< / div >
< / div >
< / section >
< section class = "tsd-panel tsd-hierarchy" >
< h3 > Hierarchy< / h3 >
< ul class = "tsd-hierarchy" >
< li >
< span class = "target" > FluencePeer< / span >
< / li >
< / ul >
< / section >
< section class = "tsd-panel-group tsd-index-group" >
< h2 > Index< / h2 >
< section class = "tsd-panel tsd-index-panel" >
< div class = "tsd-index-content" >
< section class = "tsd-index-section " >
< h3 > Constructors< / h3 >
< ul class = "tsd-index-list" >
< li class = "tsd-kind-constructor tsd-parent-kind-class" > < a href = "FluencePeer.html#constructor" class = "tsd-kind-icon" > constructor< / a > < / li >
< / ul >
< / section >
< section class = "tsd-index-section " >
< h3 > Accessors< / h3 >
< ul class = "tsd-index-list" >
< li class = "tsd-kind-get-signature tsd-parent-kind-class" > < a href = "FluencePeer.html#internals" class = "tsd-kind-icon" > internals< / a > < / li >
< / ul >
< / section >
< section class = "tsd-index-section " >
< h3 > Methods< / h3 >
< ul class = "tsd-index-list" >
2022-02-04 22:39:41 +03:00
< li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "FluencePeer.html#getServices" class = "tsd-kind-icon" > get< wbr > Services< / a > < / li >
2021-09-27 22:11:35 +03:00
< li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "FluencePeer.html#getStatus" class = "tsd-kind-icon" > get< wbr > Status< / a > < / li >
2022-04-21 14:13:26 +03:00
< li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "FluencePeer.html#registerMarineService" class = "tsd-kind-icon" > register< wbr > Marine< wbr > Service< / a > < / li >
< li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "FluencePeer.html#removeMarineService" class = "tsd-kind-icon" > remove< wbr > Marine< wbr > Service< / a > < / li >
2021-09-27 22:11:35 +03:00
< li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "FluencePeer.html#start" class = "tsd-kind-icon" > start< / a > < / li >
< li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "FluencePeer.html#stop" class = "tsd-kind-icon" > stop< / a > < / li >
< li class = "tsd-kind-method tsd-parent-kind-class tsd-is-static" > < a href = "FluencePeer.html#isInstance" class = "tsd-kind-icon" > is< wbr > Instance< / a > < / li >
< / ul >
< / section >
< / div >
< / section >
< / section >
< section class = "tsd-panel-group tsd-member-group " >
< h2 > Constructors< / h2 >
< section class = "tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class" >
< a name = "constructor" class = "tsd-anchor" > < / a >
< h3 > constructor< / h3 >
< ul class = "tsd-signatures tsd-kind-constructor tsd-parent-kind-class" >
< li class = "tsd-signature tsd-kind-icon" > new < wbr > Fluence< wbr > Peer< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < a href = "FluencePeer.html" class = "tsd-signature-type" data-tsd-kind = "Class" > FluencePeer< / a > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L182" > src/internal/FluencePeer.ts:182< / a > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Creates a new Fluence Peer instance.< / p >
< / div >
< / div >
< h4 class = "tsd-returns-title" > Returns < a href = "FluencePeer.html" class = "tsd-signature-type" data-tsd-kind = "Class" > FluencePeer< / a > < / h4 >
< / li >
< / ul >
< / section >
< / section >
< section class = "tsd-panel-group tsd-member-group " >
< h2 > Accessors< / h2 >
< section class = "tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class" >
< a name = "internals" class = "tsd-anchor" > < / a >
< h3 > internals< / h3 >
< ul class = "tsd-signatures tsd-kind-get-signature tsd-parent-kind-class" >
2022-04-06 15:16:45 +03:00
< li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > get< / span > internals< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > initiateParticle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > particle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Particle< / span > , onStageChange< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > stage< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > ParticleExecutionStage< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ; < / span > regHandler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > common< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ; < / span > forParticle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > particleId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > }< / span > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L341" > src/internal/FluencePeer.ts:341< / a > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Is not intended to be used manually. Subject to change< / p >
< / div >
< / div >
2022-04-06 15:16:45 +03:00
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-symbol" > { < / span > initiateParticle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > particle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Particle< / span > , onStageChange< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > stage< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > ParticleExecutionStage< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ; < / span > regHandler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > common< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ; < / span > forParticle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > particleId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > }< / span > < / h4 >
2021-09-27 22:11:35 +03:00
< ul class = "tsd-parameters" >
2021-10-20 22:20:43 +03:00
< li class = "tsd-parameter" >
2021-11-28 09:36:01 +03:00
< h5 > initiate< wbr > Particle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > particle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Particle< / span > , onStageChange< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > stage< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > ParticleExecutionStage< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < / h5 >
2021-10-20 22:20:43 +03:00
< ul class = "tsd-parameters" >
< li class = "tsd-parameter-signature" >
< ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" >
2021-11-28 09:36:01 +03:00
< li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > particle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Particle< / span > , onStageChange< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > stage< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > ParticleExecutionStage< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > void< / span > < / li >
2021-10-20 22:20:43 +03:00
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Initiates a new particle execution starting from local peer< / p >
< / div >
< / div >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
< h5 > particle: < span class = "tsd-signature-type" > Particle< / span > < / h5 >
< div class = "tsd-comment tsd-typography" >
< p > particle to start execution of< / p >
< / div >
< / li >
2021-11-28 09:36:01 +03:00
< li >
< h5 > onStageChange: < span class = "tsd-signature-symbol" > (< / span > stage< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > ParticleExecutionStage< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < / h5 >
< ul class = "tsd-parameters" >
< li class = "tsd-parameter-signature" >
< ul class = "tsd-signatures tsd-kind-type-literal" >
< li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > stage< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > ParticleExecutionStage< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > void< / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
< h5 > stage: < span class = "tsd-signature-type" > ParticleExecutionStage< / span > < / h5 >
< / li >
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 >
< / li >
< / ul >
< / li >
< / ul >
< / li >
2021-10-20 22:20:43 +03:00
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "tsd-parameter" >
2021-11-28 09:36:01 +03:00
< h5 > reg< wbr > Handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > common< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ; < / span > forParticle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > particleId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > }< / span > < / h5 >
2021-10-20 22:20:43 +03:00
< ul class = "tsd-parameters" >
< li class = "tsd-parameter" >
< h5 > common< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < / h5 >
< ul class = "tsd-parameters" >
< li class = "tsd-parameter-signature" >
< ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" >
< li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > void< / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Register handler for all particles< / p >
< / div >
< / div >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
< h5 > serviceId: < span class = "tsd-signature-type" > string< / span > < / h5 >
< / li >
< li >
< h5 > fnName: < span class = "tsd-signature-type" > string< / span > < / h5 >
< / li >
< li >
< h5 > handler: < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < / h5 >
< / li >
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "tsd-parameter" >
< h5 > for< wbr > Particle< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > particleId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > void< / span > < / h5 >
< ul class = "tsd-parameters" >
< li class = "tsd-parameter-signature" >
< ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" >
< li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > particleId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , fnName< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > , handler< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > void< / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Register handler which will be called only for particle with the specific id< / p >
< / div >
< / div >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
< h5 > particleId: < span class = "tsd-signature-type" > string< / span > < / h5 >
< / li >
< li >
< h5 > serviceId: < span class = "tsd-signature-type" > string< / span > < / h5 >
< / li >
< li >
< h5 > fnName: < span class = "tsd-signature-type" > string< / span > < / h5 >
< / li >
< li >
< h5 > handler: < span class = "tsd-signature-type" > GenericCallServiceHandler< / span > < / h5 >
< / li >
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 >
< / li >
< / ul >
< / li >
< / ul >
< / li >
2021-09-27 22:11:35 +03:00
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / section >
< / section >
< section class = "tsd-panel-group tsd-member-group " >
< h2 > Methods< / h2 >
2022-02-04 22:39:41 +03:00
< section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" >
< a name = "getServices" class = "tsd-anchor" > < / a >
< h3 > get< wbr > Services< / h3 >
< ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" >
< li class = "tsd-signature tsd-kind-icon" > get< wbr > Services< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > sig< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Sig< / span > < span class = "tsd-signature-symbol" > }< / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L284" > src/internal/FluencePeer.ts:284< / a > < / li >
2022-02-04 22:39:41 +03:00
< / ul >
< / aside >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-symbol" > { < / span > sig< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Sig< / span > < span class = "tsd-signature-symbol" > }< / span > < / h4 >
< ul class = "tsd-parameters" >
< li class = "tsd-parameter" >
< h5 > sig< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Sig< / span > < / h5 >
< / li >
< / ul >
< / li >
< / ul >
< / section >
2021-09-27 22:11:35 +03:00
< section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" >
< a name = "getStatus" class = "tsd-anchor" > < / a >
< h3 > get< wbr > Status< / h3 >
< ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" >
< li class = "tsd-signature tsd-kind-icon" > get< wbr > Status< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/PeerStatus.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > PeerStatus< / a > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L200" > src/internal/FluencePeer.ts:200< / a > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Get the peer' s status< / p >
< / div >
< / div >
< h4 class = "tsd-returns-title" > Returns < a href = "../interfaces/PeerStatus.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > PeerStatus< / a > < / h4 >
< / li >
< / ul >
< / section >
2022-04-21 14:13:26 +03:00
< section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" >
< a name = "registerMarineService" class = "tsd-anchor" > < / a >
< h3 > register< wbr > Marine< wbr > Service< / h3 >
< ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" >
< li class = "tsd-signature tsd-kind-icon" > register< wbr > Marine< wbr > Service< span class = "tsd-signature-symbol" > (< / span > wasm< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > SharedArrayBuffer< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Buffer< / span > , serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L299" > src/internal/FluencePeer.ts:299< / a > < / li >
2022-04-21 14:13:26 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Registers marine service within the Fluence peer from wasm file.
Following helper functions can be used to load wasm files:< / p >
< ul >
< li > loadWasmFromFileSystem< / li >
< li > loadWasmFromNpmPackage< / li >
< li > loadWasmFromServer< / li >
< / ul >
< / div >
< / div >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
< h5 > wasm: < span class = "tsd-signature-type" > SharedArrayBuffer< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Buffer< / span > < / h5 >
< div class = "tsd-comment tsd-typography" >
< p > buffer with the wasm file for service< / p >
< / div >
< / li >
< li >
< h5 > serviceId: < span class = "tsd-signature-type" > string< / span > < / h5 >
< div class = "tsd-comment tsd-typography" >
< p > the service id by which the service can be accessed in aqua< / p >
< / div >
< / li >
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 >
< / li >
< / ul >
< / section >
< section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" >
< a name = "removeMarineService" class = "tsd-anchor" > < / a >
< h3 > remove< wbr > Marine< wbr > Service< / h3 >
< ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" >
< li class = "tsd-signature tsd-kind-icon" > remove< wbr > Marine< wbr > Service< span class = "tsd-signature-symbol" > (< / span > serviceId< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > void< / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L313" > src/internal/FluencePeer.ts:313< / a > < / li >
2022-04-21 14:13:26 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Removes the specified marine service from the Fluence peer< / p >
< / div >
< / div >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
< h5 > serviceId: < span class = "tsd-signature-type" > string< / span > < / h5 >
< div class = "tsd-comment tsd-typography" >
< p > the service id to remove< / p >
< / div >
< / li >
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 >
< / li >
< / ul >
< / section >
2021-09-27 22:11:35 +03:00
< section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" >
< a name = "start" class = "tsd-anchor" > < / a >
< h3 > start< / h3 >
< ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" >
2021-10-21 18:04:20 +03:00
< li class = "tsd-signature tsd-kind-icon" > start< span class = "tsd-signature-symbol" > (< / span > config< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../interfaces/PeerConfig.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > PeerConfig< / a > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L216" > src/internal/FluencePeer.ts:216< / a > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Initializes the peer: starts the Aqua VM, initializes the default call service handlers
and (optionally) connect to the Fluence network< / p >
< / div >
< / div >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
2021-10-21 18:04:20 +03:00
< h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > config: < a href = "../interfaces/PeerConfig.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > PeerConfig< / a > < / h5 >
2021-09-27 22:11:35 +03:00
< div class = "tsd-comment tsd-typography" >
< p > object specifying peer configuration< / p >
< / div >
< / li >
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 >
< / li >
< / ul >
< / section >
< section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" >
< a name = "stop" class = "tsd-anchor" > < / a >
< h3 > stop< / h3 >
< ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" >
< li class = "tsd-signature tsd-kind-icon" > stop< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L321" > src/internal/FluencePeer.ts:321< / a > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
2021-10-20 22:20:43 +03:00
< p > Un-initializes the peer: stops all the underlying workflows, stops the Aqua VM
2021-09-27 22:11:35 +03:00
and disconnects from the Fluence network< / p >
< / div >
< / div >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 >
< / li >
< / ul >
< / section >
< section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static" >
< a name = "isInstance" class = "tsd-anchor" > < / a >
< h3 > < span class = "tsd-flag ts-flagStatic" > Static< / span > is< wbr > Instance< / h3 >
< ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static" >
< li class = "tsd-signature tsd-kind-icon" > is< wbr > Instance< span class = "tsd-signature-symbol" > (< / span > obj< span class = "tsd-signature-symbol" > : < / span > < a href = "FluencePeer.html" class = "tsd-signature-type" data-tsd-kind = "Class" > FluencePeer< / a > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > boolean< / span > < / li >
< / ul >
< ul class = "tsd-descriptions" >
< li class = "tsd-description" >
< aside class = "tsd-sources" >
< ul >
2022-04-24 10:49:57 +03:00
< li > Defined in < a href = "https://github.com/fluencelabs/fluence-js/blob/4fcb39b/src/internal/FluencePeer.ts#L189" > src/internal/FluencePeer.ts:189< / a > < / li >
2021-09-27 22:11:35 +03:00
< / ul >
< / aside >
< div class = "tsd-comment tsd-typography" >
< div class = "lead" >
< p > Checks whether the object is instance of FluencePeer class< / p >
< / div >
< / div >
< h4 class = "tsd-parameters-title" > Parameters< / h4 >
< ul class = "tsd-parameters" >
< li >
< h5 > obj: < a href = "FluencePeer.html" class = "tsd-signature-type" data-tsd-kind = "Class" > FluencePeer< / a > < / h5 >
< div class = "tsd-comment tsd-typography" >
< p > object to check if it is FluencePeer< / p >
< / div >
< / li >
< / ul >
< h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > boolean< / span > < / h4 >
< p > true if the object is FluencePeer false otherwise< / p >
< / li >
< / ul >
< / section >
< / section >
< / div >
< div class = "col-4 col-menu menu-sticky-wrap menu-highlight" >
< nav class = "tsd-navigation primary" >
< ul >
< li class = " " >
< a href = "../modules.html" > Exports< / a >
< / li >
< / ul >
< / nav >
< nav class = "tsd-navigation secondary menu-sticky" >
< ul class = "before-current" >
< / ul >
< ul class = "current" >
< li class = "current tsd-kind-class" >
< a href = "FluencePeer.html" class = "tsd-kind-icon" > Fluence< wbr > Peer< / a >
< ul >
< li class = " tsd-kind-constructor tsd-parent-kind-class" >
< a href = "FluencePeer.html#constructor" class = "tsd-kind-icon" > constructor< / a >
< / li >
< li class = " tsd-kind-get-signature tsd-parent-kind-class" >
< a href = "FluencePeer.html#internals" class = "tsd-kind-icon" > internals< / a >
< / li >
2022-02-04 22:39:41 +03:00
< li class = " tsd-kind-method tsd-parent-kind-class" >
< a href = "FluencePeer.html#getServices" class = "tsd-kind-icon" > get< wbr > Services< / a >
< / li >
2021-09-27 22:11:35 +03:00
< li class = " tsd-kind-method tsd-parent-kind-class" >
< a href = "FluencePeer.html#getStatus" class = "tsd-kind-icon" > get< wbr > Status< / a >
< / li >
2022-04-21 14:13:26 +03:00
< li class = " tsd-kind-method tsd-parent-kind-class" >
< a href = "FluencePeer.html#registerMarineService" class = "tsd-kind-icon" > register< wbr > Marine< wbr > Service< / a >
< / li >
< li class = " tsd-kind-method tsd-parent-kind-class" >
< a href = "FluencePeer.html#removeMarineService" class = "tsd-kind-icon" > remove< wbr > Marine< wbr > Service< / a >
< / li >
2021-09-27 22:11:35 +03:00
< li class = " tsd-kind-method tsd-parent-kind-class" >
< a href = "FluencePeer.html#start" class = "tsd-kind-icon" > start< / a >
< / li >
< li class = " tsd-kind-method tsd-parent-kind-class" >
< a href = "FluencePeer.html#stop" class = "tsd-kind-icon" > stop< / a >
< / li >
< li class = " tsd-kind-method tsd-parent-kind-class tsd-is-static" >
< a href = "FluencePeer.html#isInstance" class = "tsd-kind-icon" > is< wbr > Instance< / a >
< / li >
< / ul >
< / li >
< / ul >
< ul class = "after-current" >
< li class = " tsd-kind-class" >
< a href = "KeyPair.html" class = "tsd-kind-icon" > Key< wbr > Pair< / a >
< / li >
< li class = " tsd-kind-interface tsd-has-type-parameter" >
< a href = "../interfaces/CallParams.html" class = "tsd-kind-icon" > Call< wbr > Params< / a >
< / li >
2021-10-21 18:04:20 +03:00
< li class = " tsd-kind-interface" >
< a href = "../interfaces/PeerConfig.html" class = "tsd-kind-icon" > Peer< wbr > Config< / a >
< / li >
2021-09-27 22:11:35 +03:00
< li class = " tsd-kind-interface" >
< a href = "../interfaces/PeerStatus.html" class = "tsd-kind-icon" > Peer< wbr > Status< / a >
< / li >
< li class = " tsd-kind-type-alias" >
< a href = "../modules.html#AvmLoglevel" class = "tsd-kind-icon" > Avm< wbr > Loglevel< / a >
< / li >
< li class = " tsd-kind-type-alias" >
< a href = "../modules.html#PeerIdB58" class = "tsd-kind-icon" > Peer< wbr > IdB58< / a >
< / li >
< li class = " tsd-kind-variable" >
< a href = "../modules.html#Fluence" class = "tsd-kind-icon" > Fluence< / a >
< / li >
2022-04-21 14:13:26 +03:00
< li class = " tsd-kind-function tsd-is-external" >
< a href = "../modules.html#loadWasmFromFileSystem" class = "tsd-kind-icon" > load< wbr > Wasm< wbr > From< wbr > File< wbr > System< / a >
< / li >
< li class = " tsd-kind-function tsd-is-external" >
< a href = "../modules.html#loadWasmFromNpmPackage" class = "tsd-kind-icon" > load< wbr > Wasm< wbr > From< wbr > Npm< wbr > Package< / a >
< / li >
< li class = " tsd-kind-function tsd-is-external" >
< a href = "../modules.html#loadWasmFromServer" class = "tsd-kind-icon" > load< wbr > Wasm< wbr > From< wbr > Server< / a >
< / li >
2021-09-27 22:11:35 +03:00
< li class = " tsd-kind-function" >
< a href = "../modules.html#setLogLevel" class = "tsd-kind-icon" > set< wbr > Log< wbr > Level< / a >
< / li >
< / ul >
< / nav >
< / div >
< / div >
< / div >
< footer class = "with-border-bottom" >
< div class = "container" >
< h2 > Legend< / h2 >
< div class = "tsd-legend-group" >
< ul class = "tsd-legend" >
< li class = "tsd-kind-constructor tsd-parent-kind-class" > < span class = "tsd-kind-icon" > Constructor< / span > < / li >
< li class = "tsd-kind-property tsd-parent-kind-class" > < span class = "tsd-kind-icon" > Property< / span > < / li >
< li class = "tsd-kind-method tsd-parent-kind-class" > < span class = "tsd-kind-icon" > Method< / span > < / li >
< / ul >
< ul class = "tsd-legend" >
< li class = "tsd-kind-property tsd-parent-kind-interface" > < span class = "tsd-kind-icon" > Property< / span > < / li >
< / ul >
< ul class = "tsd-legend" >
< li class = "tsd-kind-method tsd-parent-kind-class tsd-is-static" > < span class = "tsd-kind-icon" > Static method< / span > < / li >
< / ul >
< / div >
< / div >
< / footer >
< div class = "container tsd-generator" >
< p > Generated using < a href = "https://typedoc.org/" target = "_blank" > TypeDoc< / a > < / p >
< / div >
< div class = "overlay" > < / div >
< script src = "../assets/js/main.js" > < / script >
< / body >
< / html >