Most visitors online was 11410 , on 26 Apr 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!The server files might be outdated so that's why it keeps disconnecting and re-connecting. The handshake fails so the client or server decides to disconnect. You might want to stick with the files provided in the release section.
// ----- Client authenticity check code -----
// !!!!! WARNING !!!!!
// THE BELOW SECTION OF CODE CHECKS TO ENSURE THAT CONNECTIONS ARE COMING
// FROM THE OFFICIAL AGAR.IO CLIENT. IF YOU REMOVE OR MODIFY THE BELOW
// SECTION OF CODE TO ALLOW CONNECTIONS FROM A CLIENT ON A DIFFERENT DOMAIN,
// YOU MAY BE COMMITTING COPYRIGHT INFRINGEMENT AND LEGAL ACTION MAY BE TAKEN
// AGAINST YOU. THIS SECTION OF CODE WAS ADDED ON JULY 9, 2015 AT THE REQUEST
// OF THE AGAR.IO DEVELOPERS.
var origin = ws.upgradeReq.headers.origin;
if (origin != 'http://agar.io' && origin != 'https://agar.io'
&& origin != 'http://localhost' && origin != 'https://localhost'
&& origin != 'http://127.0.0.1' && origin != 'https://127.0.0.1') {
ws.close();
return;
}