MCPcopy Create free account
hub / github.com/PrismarineJS/node-minecraft-protocol / close

Method close

src/server.js:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 close () {
63 Object.keys(this.clients).forEach(clientId => {
64 const client = this.clients[clientId]
65 client.end('ServerShutdown')
66 })
67 this.socketServer.close()
68 }
69
70 writeToClients (clients, name, params) {
71 if (clients.length === 0) return

Callers 3

packetTest.jsFile · 0.80
serverTest.jsFile · 0.80
getPortFunction · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected