function broadcastCompileHandler (socket, roomId) {
  if (isInvalidRoomId(roomId)) {
    console.error(
      `attempted broadcast of invalid room: 
      ${roomId}`
    )
    socket.disconnect(true)
  } else {
    socket.broadcast.to(roomId).emit('sync compile')
  }
}
/**
 * @param {SocketIO.Socket} socket socket server connection
 * @param {string} roomId the roomId
 */
@param {SocketIO.Socket} socket socket server connection
@param {string} roomId the roomId
@param { SocketIO . Socket } socket socket server connection @param { string } roomId the roomId
function broadcastCompileHandler (socket, roomId) {
  if (isInvalidRoomId(roomId)) {
    console.error(
      `attempted broadcast of invalid room: 
      ${roomId}`
    )
    socket.disconnect(true)
  } else {
    socket.broadcast.to(roomId).emit('sync compile')
  }
}
function broadcastCompileHandler ( socket , roomId ) { if ( isInvalidRoomId ( roomId ) ) { console . error ( ` ${ roomId } ` ) socket . disconnect ( true ) } else { socket . broadcast . to ( roomId ) . emit ( 'sync compile' ) } }
@param {SocketIO.Socket} socket socket server connection
 @param {string} roomId the roomId
@param { SocketIO . Socket } socket socket server connection @param { string } roomId the roomId