Files: 0872f0354cc0cdb87c143bd22c75598169e7c206 / docs / portManager.md
4586 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
The port manager manages the the ports. This inculdes creation, deletion fetching and waiting on ports
Parameters
bind
binds a port to a name
Parameters
unbind
unbinds a port given its name
Parameters
name
string
Returns Promise
delete
delete an port given the name it is bound to
Parameters
name
string
clearUnboundedPorts
clears any unbounded ports referances
isBound
check if a port object is still valid
Parameters
port
Object
Returns Boolean
queue
queues a message on a port
Parameters
name
message
Message
get
gets a port given it's name
Parameters
name
String
Returns Object
createChannel
creates a channel returns the created ports in an Array
Returns array
getNextMessage
Waits for the the next message if any
Returns Promise
Built with git-ssb-web