godot websocket
This example will show you how to create a WebSocket server that listens for remote connections, and how to send and receive data.
This class represents WebSocket connection, and can be used as a WebSocket client (RFC 6455-compliant) or as a remote peer of a WebSocket server.
I just released a dedicated websocket server for Godot 4.1 on Github. The project should help those who want to start making multiplayer games, specially mmos.
啟動WebSocket 服務. 信號狀態 · 建立連線 · 接收& 回傳訊息 · 溫知故新 · PoolByteArray · PoolIntArray · StreamPeerBuffer. 啟動WebSocket
WebSocket協定在2011年被標準化, 最初的目標是讓瀏覽器與伺服器建立穩定的雙向連接. 在此之前, 瀏覽器曾只支援HTTPRequests, 並不適合雙向通信.
According to Minimal server example in the networking tutorials, there should be a WebSocketServer class; however, I don't see any at the API reference.