async function getEvents(serverId) {
  return new Promise((resolve, reject) => {
    socket.emit('getEvents', serverId, (entries) => {
      entries.forEach((entry) => {
        entry.events = entry.events.map((entry) => {
          return Blockly.Events.fromJson(entry, Blockly.getMainWorkspace());
        });
      });
      resolve(entries);
    });
  });
}
Query the database for entries since the given server id.
@param {number} serverId serverId for the lower bound of the query.
@returns {!Promise} Promise object that represents the entries of events since
the given serverId.
@public