web-services

Installation
SKILL.md

Web Services in Godot 4.3+

Talk to REST APIs, leaderboards, analytics, login services, and other HTTP/WebSocket backends. All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, then C#.

Related skills: multiplayer-basics for real-time game networking with WebSocketMultiplayerPeer, save-load for persisting tokens and cached responses, web-export for CORS and browser limits, mobile-development for Android export permissions, multithreading for heavy response parsing off the main thread.


1. Picking the Tool

Need Use Why
Ordinary REST call, file or image download HTTPRequest node Handles connect, redirects, gzip, timeout; emits one signal when done
Streaming a response, custom keep-alive, many requests to one host HTTPClient Low-level; you call poll() and drive the state machine yourself
Persistent two-way channel (chat, live events, lobby service) WebSocketPeer Client socket; call poll() every frame
Real-time gameplay sync with RPCs WebSocketMultiplayerPeer Plugs into MultiplayerAPI — see multiplayer-basics

One HTTPRequest node runs one request at a time. A second request() while one is in flight returns ERR_BUSY. Create one node per concurrent request (Section 3) rather than queueing on a shared node.

Installs
16
GitHub Stars
881
First Seen
7 days ago