npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kronos-integration/endpoint

v9.5.6

Published

named communication (end)-points inside of kronos

Downloads

3,497

Readme

License Typed with TypeScript GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

kronos-endpoint

Named communication (end)-points inside of kronos

request forwarding{:height="310pt" width="325pt"}

API

Table of Contents

DummyReceiveEndpoint

Extends Endpoint

Dummy endpoints are used during construction of the endpoint mesh.

receive

dummy does nothing by intention.

isIn

Returns boolean true

isOpen

Returns boolean true

isDummy

Indicate whatever we are a dummy endpoint. Dummy endpoints are used duiring construction of the endpoint mesh.

Returns boolean true

ConnectionState

Type: Object

Endpoint

Connection endpoint.

Parameters

displayName

Name as presented for humans.

Returns string

isDefault

Indicate whatever we are a default endpoint. Default means buildin.

Returns boolean false

isDummy

Indicate whatever we are a dummy endpoint. Dummy endpoints are used duiring construction of the endpoint mesh.

Returns boolean false

toStringAttributes

Mapping of properties used in toString.

Returns Object

connectionNamesWithStates

Parameters

  • options Object (optional, default {includeRuntimeInfo:true})

isIn

Returns boolean false

isOut

Returns boolean false

direction

Deliver data flow direction.

Returns (string | undefined) delivers data flow direction 'in', 'out', 'inout' or undefined

jsonAttributes

Additional attributes to present in json output.

hasInterceptors

Returns boolean true if there is at least one interceptor assigned

connectable

Can we form a connection to the other side. in to out and out to in.

Parameters

Returns boolean true if we can be connected to the other endpoint

hasConnections

Returns boolean true if there is at least one connection

isConnected

Are we connected to a endpoint.

Parameters

  • other Endpoint to check for the connection

Returns boolean true if there is a connection to the other endpoint

openConnection

Actually start with the communication.

Parameters

  • other Endpoint
  • backpointer boolean? true if this is the call from back call from the other side

closeConnection

Actually stop the communication.

Parameters

  • other Endpoint
  • backpointer boolean? true if this is the call from back call from the other side

openConnections

Opens all connections.

closeConnections

Closes all connections.

connections

Returns Iterable<Endpoint>

addConnection

Parameters

  • connection Endpoint
  • backpointer boolean? true if this is the call form back call from the other side

removeConnection

Actually stop the communication.

Parameters

  • other Endpoint
  • backpointer boolean? true if this is the call form back call from the other side

getConnectionState

Deliver state for a given connection.

Parameters

Returns ConnectionState

setConnectionState

Set state for a given connection.

Parameters

didConnect

Parameters

isEndpoint

Check for Endpoint.

Parameters

  • object any to be checked

Returns boolean true if object is an Endpoint

instanciateInterceptors

Instanciate interceptors from its definitions.

Parameters

Returns Array<Interceptor>

MultiConnectionEndpoint

Extends ReceivableEndpoint

Multiple connection endpoint. Can hold several connections.

Parameters

  • name
  • owner
  • options

getConnectionState

Deliver connection state.

Parameters

Returns any our state for the connection to other

setConnectionState

Set connection state.

Parameters

  • other Endpoint
  • state any for the connection to other

removeConnection

Actually stop the communication.

Parameters

  • other Endpoint
  • backpointer boolean?? true if this is the call form back call from the other side

isConnected

Check connectivity.

Parameters

Returns boolean true if we are connected with other

connections

All connections

connections

Type: Map<Endpoint, any>

MultiSendEndpoint

Extends MultiConnectionEndpoint

Multiple Sending Endpoint. Can hold several connections. Back connections to any further endpoints will not be established

Parameters

  • name string endpoint name

  • owner Object of the endpoint (service)

  • options Object

    • options.connected Endpoint? where te requests are delivered to
    • options.didConnect Function? called after receiver is present

isOut

We are always out

Returns boolean always true

ReceivableEndpoint

Extends Endpoint

Parameters

isIn

Returns boolean true is receive function is present

receive

Get the receive function.

Returns Function

receive

Set the receive function.

Parameters

ReceiveEndpointDefault

Extends ReceiveEndpoint

Receive Endpoint acting as a default endpoints.

isDefault

We are a default endpoint

Returns boolean always true

ReceiveEndpointSelfConnectedDefault

Extends ReceiveEndpointDefault

Receiving endpoint wich can also send to itself.

removeConnection

Actually stop the communication.

Parameters

  • other Endpoint
  • backpointer boolean? true if this is the call form back call from the other side

ReceiveEndpoint

Extends MultiConnectionEndpoint

Receiving Endpoint. Can receive from several endpoints. By default a dummy rejecting receiver is assigned

Parameters

isIn

We are always in

Returns boolean always true

SendEndpointDefault

Extends SendEndpoint

Send Endpoint acting as a default endpoints.

isDefault

We are a default endpoint.

Returns boolean always true

SendEndpoint

Extends ReceivableEndpoint

Sending Endpoint. Can only hold one connection. Back connections to any further endpoints will not be established

Parameters

  • name string endpoint name

  • owner Object of the endpoint (service)

  • options Object

    • options.connected Endpoint? where te requests are delivered to
    • options.didConnect Function? called after receiver is present

isOut

We are always out

Returns boolean always true

addConnection

Add a connection.

Parameters

  • other Endpoint
  • backpointer boolean? true if this is the call form back call from the other side

removeConnection

Actually stop the communication.

Parameters

  • other Endpoint
  • backpointer boolean? true if this is the call form back call from the other side

SendReceiveEndpoint

Extends SendEndpoint

bi directional endpint

isIn

Always receiving.

Returns boolean true

install

With npm do:

npm install kronos-endpoint

license

BSD-2-Clause