<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.aagrinder.xyz/index.php?action=history&amp;feed=atom&amp;title=AAGRINDER_socket.io_api</id>
	<title>AAGRINDER socket.io api - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.aagrinder.xyz/index.php?action=history&amp;feed=atom&amp;title=AAGRINDER_socket.io_api"/>
	<link rel="alternate" type="text/html" href="https://wiki.aagrinder.xyz/index.php?title=AAGRINDER_socket.io_api&amp;action=history"/>
	<updated>2026-05-06T01:12:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://wiki.aagrinder.xyz/index.php?title=AAGRINDER_socket.io_api&amp;diff=44878&amp;oldid=prev</id>
		<title>Maze2: mark out of date</title>
		<link rel="alternate" type="text/html" href="https://wiki.aagrinder.xyz/index.php?title=AAGRINDER_socket.io_api&amp;diff=44878&amp;oldid=prev"/>
		<updated>2024-07-05T09:33:09Z</updated>

		<summary type="html">&lt;p&gt;mark out of date&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:33, 5 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AAGRINDER uses the [https://socket.io socket.io] library for most of the communication between the AAGRINDER server and the AAGRINDER clients.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AAGRINDER uses the [https://socket.io socket.io] library for most of the communication between the AAGRINDER server and the AAGRINDER clients.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page describes all the different messages that can be sent between the server and the client over socket.io.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page describes all the different messages that can be sent between the server and the client over socket.io.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;This page is out of date! The API may be different than described.&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Endpoints on the server ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Endpoints on the server ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maze2</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.aagrinder.xyz/index.php?title=AAGRINDER_socket.io_api&amp;diff=185&amp;oldid=prev</id>
		<title>imported&gt;Maze: creat</title>
		<link rel="alternate" type="text/html" href="https://wiki.aagrinder.xyz/index.php?title=AAGRINDER_socket.io_api&amp;diff=185&amp;oldid=prev"/>
		<updated>2019-11-15T18:11:57Z</updated>

		<summary type="html">&lt;p&gt;creat&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;AAGRINDER uses the [https://socket.io socket.io] library for most of the communication between the AAGRINDER server and the AAGRINDER clients.&lt;br /&gt;
This page describes all the different messages that can be sent between the server and the client over socket.io.&lt;br /&gt;
&lt;br /&gt;
== Endpoints on the server ==&lt;br /&gt;
&lt;br /&gt;
This section describes all the messages that can be sent from the AAGRINDER client to the AAGRINDER server.&lt;br /&gt;
&lt;br /&gt;
The items under &amp;#039;&amp;#039;Data&amp;#039;&amp;#039; need to be present in the message, otherwise the message is ignored.&lt;br /&gt;
The examples are written as code you would run on the client.&lt;br /&gt;
&lt;br /&gt;
=== Login ===&lt;br /&gt;
Attempts to log in a player&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;login&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Data ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{ username:[string], password:[string] }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Sample code ====&lt;br /&gt;
&amp;lt;pre&amp;gt;socket.emit(&amp;#039;login&amp;#039;, {username:&amp;#039;original&amp;#039;, password:&amp;#039;hihi&amp;#039;});&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Chat message ===&lt;br /&gt;
Sends a chat message to all other clients, or runs a server-side command.&lt;br /&gt;
Only works if player is logged in.&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;chat&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Data ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{ message:[string] }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Sample code ====&lt;br /&gt;
&amp;lt;pre&amp;gt;socket.emit(&amp;#039;chat&amp;#039;, {message:&amp;#039;hi!&amp;#039;});&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Change player color ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;changecolor&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Game tick ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;t&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Submit debug logs ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;debuglog&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Endpoints on the client ==&lt;br /&gt;
&lt;br /&gt;
This section describes all the messages that can be received on the AAGRINDER client from the AAGRINDER server.&lt;br /&gt;
&lt;br /&gt;
The items under &amp;#039;&amp;#039;Data&amp;#039;&amp;#039; are always present in the message received from the server, unless they are marked with &amp;#039;&amp;#039;?&amp;#039;&amp;#039;, in which case they are optional.&lt;br /&gt;
The examples are written as code you would run on the client.&lt;br /&gt;
&lt;br /&gt;
=== Login success ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;loginsuccess&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Sample code ====&lt;br /&gt;
&amp;lt;pre&amp;gt;socket.on(&amp;#039;loginsuccess&amp;#039;, data =&amp;gt; console.log(data));&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Login error ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;loginerror&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Sample code ====&lt;br /&gt;
&amp;lt;pre&amp;gt;socket.on(&amp;#039;loginerror&amp;#039;, data =&amp;gt; console.log(data));&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Force reload ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;FORCERELOAD&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Sample code ====&lt;br /&gt;
&amp;lt;pre&amp;gt;socket.on(&amp;#039;FORCERELOAD&amp;#039;, data =&amp;gt; console.log(data));&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Chat message ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;chat&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Sample code ====&lt;br /&gt;
&amp;lt;pre&amp;gt;socket.on(&amp;#039;chat&amp;#039;, data =&amp;gt; console.log(data));&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Terrain update ===&lt;br /&gt;
==== Endpoint ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;#039;t&amp;#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Sample code ====&lt;br /&gt;
&amp;lt;pre&amp;gt;socket.on(&amp;#039;t&amp;#039;, data =&amp;gt; console.log(data));&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Maze</name></author>
		
	</entry>
</feed>