Use [mitm](https://www.npmjs.com/package/mitm) package which is also used in node-insim to intercept TCP socket connections. - [x] InSim connection - [x] Single button render - [x] Invalid button dimensions - [x] Button text too long - [x] Updating button text - [x] Updating button dimensions - [x] Unmounting buttons - [x] Global scope buttons - [x] Human player scope buttons - [x] Connection scope buttons - [x] Clearing and restoring all buttons using Shift + I - [x] Text align in buttons - [x] Button text colors - [x] Button variants - [x] Disabled buttons - [x] Initializing dialog with button text - [x] Button caption - [x] Max type in button chars - [x] Button is always on screen - [x] Flex component - [x] Button background colors - [x] Button ClickID per UCID - [x] Too many buttons per UCID - [x] Button onClick listener - [x] Button onType listener
Use mitm package which is also used in node-insim to intercept TCP socket connections.