post-me

Home > post-me > Connection

Connection interface

An active connection between two contexts

Signature:

export interface Connection<M0 extends MethodsType = any, E0 extends EventsType = any, M1 extends MethodsType = any, E1 extends EventsType = any> 

Methods

Method Description
close() Stop listening to incoming message from the other side
localHandle() Get a handle to the local end of the connection
remoteHandle() Get a handle to the other end of the connection