ConnectionBinding<T> constructor

ConnectionBinding<T>(
  1. String event,
  2. T callback
)

Constructs a ConnectionBinding object.

The event parameter is the name of the connection event. The callback parameter is the callback function to be executed when the event occurs.

Implementation

ConnectionBinding(this.event, this.callback) {
  this.event = event;
  this.callback = callback;
}