-
Notifications
You must be signed in to change notification settings - Fork 2
disconnect_method
bergsma edited this page Jul 31, 2014
·
2 revisions
The AutoRouter DISCONNECT__method is used for terminating connections with itself and with target objects. AutoRouter will terminate the local routing services for a local client application when that client sends a DISCONNECT message either to AutoRouter, or to the target process it wants to disconnect from.
For example, to terminate the connection with AutoRouter, you could call the HS _event _ method as follows:
event ( "router", "DISCONNECT", {} ) ;
``
_
Similarly, terminating the connection with a target called object@node, can be accomplished with:
event ( "object@node", "DISCONNECT", {} ) ;
``
_
In either case, AutoRouter will close local routing services.