start method
void
start()
Start the supervisor. Do not use directly.
Implementation
void start() {
Session.wheneverUserConnects((phoenixSocket){
this.phoenixSocket = phoenixSocket;
connected = true;
notifyListeners();
_notifyObservers(phoenixSocket);
});
Session.wheneverUserDisconnects((phoenixSocket){
connected = false;
this.phoenixSocket = null;
notifyListeners();
});
}