Files
discordeno/module/sharding_manager.ts
2020-04-17 22:13:30 -04:00

12 lines
381 B
TypeScript

// import { WebSocket } from "https://deno.land/std/ws/mod.ts"
// import { Client_Options } from "../types/options.ts"
export const spawnShards = (total: number, id = 1) => {
// this.ShardingManager.spawnShard(id);
if (id < total) spawnShards(total, id + 1)
}
// export const spawnShardss = (total: number, socket: WebSocket, data: Client_Options, payload: unknown) => {
// }