#!/usr/bin/env node

const rgb = (r, g, b, msg) => `\x1b[38;2;${r};${g};${b}m${msg}\x1b[0m`;
const log = (...args) => console.log(`[${rgb(88, 101, 242, 'arRPC')}]`, ...args);

log('arRPC v3.7.0');

import * as Bridge from './bridge.js';
import Server from './server.js';

(async () => {
  const server = await new Server();

  server.on('activity', data => Bridge.send(data));
})();
