Connect to a diep.io server very easily.
npm install diepsocket
The following example will connect a bot to the diep.io partylink.
const DiepSocket = require('diepsocket');
const bot = new DiepSocket('diep.io/#26331613006B57F647');
bot.on('accept', () => console.log('Succesfully connected!'))
bot.on('error', (err) => console.log(err));
The documentation is still in progress https://github.com/Cazka/diepsocket/blob/master/docs/diepsocket.md
If you want to learn the server protocol I suggest visiting these sites:
https://github.com/cx88/diepssect
https://github.com/HueHanaejistla/diep.io-protocol-wiki
https://packet-prettifier.surge.sh/