Turns this:
const SC = {
Socket: load('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac.Socket'),
BasicListener: load('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac.BasicListener'),
Emitter: {
Listener: load('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac.Emitter$Listener'),
},
ReconnectStrategy: load('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac.ReconnectStrategy'),
}
into this:
const SC = loadClasses('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac', [
'Socket',
'BasicListener',
'Emitter.Listener',
'ReconnectStrategy'
])