handleOpen method

void handleOpen()

Implementation

void handleOpen() {
  sendHeartbeat();
  emit('open');
}