Lunar Socket is a Websocket server for Lunar Client. It allows you to proxy the connection between Lunar Client and Lunar Servers. (To give you cosmetics or emotes for example)
Lunar Client <-> Lunar Socket <-> Lunar Servers
It can intercepts and edit the data in the packets.
You can see Lunar Client protocol detailed here
$ git clone https://github.com/Solar-Tweaks/LunarSocket # Clone repo
$ cd LunarSocket # Go to LunarSocket folder
$ npm install # Install dependencies
Open the config.example.json
file and edit the values
Once you have edited the file save it as config.json
and start the server.
$ npm start