join method

PhoenixPush? join()

Attempts to join the Phoenix Channel

Attempting to join a channel more than once is an error.

If the channel join attempt fails, it will attempt to rejoin based on the timeout settings of the PhoenixSocket

Implementation

PhoenixPush? join() {
  if (_joinedOnce) {
    throw ("tried to join channel multiple times");
  } else {
    _joinedOnce = true;
    _rejoin(timeout);
    return _joinPush;
  }
}