Properties
Private _client
_client: Client
Private _closeHandler
_closeHandler: Function
Private Optional _options
_options: any
Methods
handle
handle( route: string , group: string , callback: Function ) : void
Parameters
route: string
group: string
callback: Function
Returns void
listen
listen( callback: Function ) : void
onClose
onClose( callback: function ) : void
publish
publish( topic: string , message: any ) : void
Parameters
topic: string
message: any
Returns void
request
request( route: string , payload: any , callback: Function , timeout?: number ) : void
Parameters
route: string
payload: any
callback: Function
Default value timeout: number = 200
Returns void
subscribe
subscribe( topic: string , group: string , callback: Function ) : number
Parameters
topic: string
group: string
callback: Function
Returns number
unsubscribe
unsubscribe( sid: number , max?: number ) : void
Parameters
sid: number
Optional max: number
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
NATS transport.