src/leader-election/index.js
function _sendMessage(leaderElector, action) {
    const msgJson = {
        context: 'leader',
        action,
        token: leaderElector.token
    };
    return leaderElector._channel.postInternal(msgJson);
}
function _sendMessage(leaderElector, action) {
    const msgJson = {
        context: 'leader',
        action,
        token: leaderElector.token
    };
    return leaderElector._channel.postInternal(msgJson);
}
function _sendMessage ( leaderElector , action ) { const msgJson = { context : 'leader' , action , token : leaderElector . token } ; return leaderElector . _channel . postInternal ( msgJson ) ; }
sends and internal message over the broadcast-channel
sends and internal message over the broadcast - channel