mcmodwiki
Mods › HexWeb › Guides › HexWeb: Internet Patterns and Socket Impetus

HexWeb: Internet Patterns and Socket Impetus

A HexWeb guide. Covers HexWeb 1.1.0 on Minecraft 1.20.1.

Casting Web Requests and JSON Iotas

HexWeb extends hex casting by enabling casters to communicate outside the local game environment using web protocols and structured data objects. Casting begins with "JSON Patterns", which handle dictionary-like constructs containing strings and supported iotas. Casters can generate an empty map using "Jason's Reflection" or convert an incoming string into structured data via "Jason's Gambit". Specific entries can be verified with "Jason's Purification", while "Jason's Purification II" extracts values by key, and "Jason's Exaltation" writes or updates values into the map.

HTTP Requests and Socket Streams

For network communication, "HTTP Spells" dispatch external requests using URL strings alongside optional headers, payloads, and request methods. Responses are parsed through "Get Response" once received. Long-lived streaming operations utilize "Socket Patterns" and "Socket Spells" in conjunction with a "Wandering Impetus" placed in a circle. This impetus manages incoming socket payloads, buffering up to 1023 queued entries. Casters can inspect network parameters using "Cerf's Reflection", "Kahn's Reflection", and "Kahn's Reflection II" to monitor target host locations and port assignments.

Mods › HexWeb › Guides › HexWeb: Internet Patterns and Socket Impetus