SocketPlugin
🟡 Updated this year⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
Preview

🔍 Analysis
- 🏆 #599 of 909 fabric mods in this game by downloads
📋 About This Mod
(archived for security concerns i should have listened to a long time ago)
A figura addon that allows you to open and use TCP sockets.
### You can contact me at `ktzukii` on Discord if the mod crashes your game, or doesn't work as intended. #### (please attach the logs on the message, if not you're getting a "invalid, read description")
## Documentation:
### SocketAPI (global `socket`)
These functions WILL return nil if the client (game) running the avatar (your scripts and model) is not the host (eg. your game will return a `LuaSocket` instance, others will return `nil`.)
So please add host checks on your socket scripts, otherwise your avatar will error on other clients, and will cause unneccesary trouble and confusion.
`SocketAPI:newSocket(String host, Number port) -> LuaSocket`
Opens a new socket, will print errors in log or throw vm error.
`SocketAPI:newWebsocket(String host, Number port) -> LuaWebsocket`
Opens a new websocket, will print errors in log or throw vm error.
`SocketAPI:closeAllSocket( -> nil)` Close all sockets on the current avatar
`SocketAPI:closeAllWebsocket() -> nil` Close all websockets on the current avatar
`SocketAPI:closeAll() -> nil`
Closes all sockets and/or websockets on the current avatar
### LuaSockets
`LuaSocket:hasData() -> boolean`
Returns whether there's data to be `recv`'d or not
`LuaSocket:recv() -> string`
Returns any data that was sent
`LuaSocket:close() -> nil`
Closes the LuaSocket cleanly instead of disconnecting weirdly.
`LuaSocket:isClosed() -> boolean`
Returns whether the LuaSocket is closed or not.
`LuaSocket:isConnected() -> boolean`
Returns whether the LuaSocket is still open or not.
## Examples: REMOVED: My examples suck :3 I'll try to add some examples on the Github WIKI, but no promises.
📊 Mod Details
- Game
- Minecraft Mods
- Author
- Vaediam
- Version
- 1.2.5+1.21.4
- Downloads
- 260
- Endorsements
- 3
- Category
- fabric
- Created
- 5/3/2026
- Updated
- 7/1/2026
- Game Versions
- 1.21.4
- Tags
- utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does SocketPlugin support?
The author lists 1.21.4. Other versions may work but are untested by the author.
What is the latest version of SocketPlugin?
Version 1.2.5+1.21.4, published 2026-07-01 with 260 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await