SocketPlugin
No reviews yet
A Figura Addon that allows TCP sockets and more.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
(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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers