mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
Uses new unified StreamPeer, dropped the multiplayer part (in favor of the dedicated WebSocket demo), add reference WebSocketClient and WebSocketServer signal-based implementations that can be used as drop-in nodes in any project. Might be worth maintaning it as a separate addon.
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
; Engine configuration file.
|
|
; It's best edited using the editor UI and not directly,
|
|
; since the parameters that go here are not all obvious.
|
|
;
|
|
; Format:
|
|
; [section] ; section goes between []
|
|
; param=value ; assign values to parameters
|
|
|
|
config_version=5
|
|
|
|
_global_script_classes=[{
|
|
"base": "Node",
|
|
"class": &"WebSocketClient",
|
|
"language": &"GDScript",
|
|
"path": "res://websocket/WebSocketClient.gd"
|
|
}, {
|
|
"base": "Node",
|
|
"class": &"WebSocketServer",
|
|
"language": &"GDScript",
|
|
"path": "res://websocket/WebSocketServer.gd"
|
|
}]
|
|
_global_script_class_icons={
|
|
"WebSocketClient": "",
|
|
"WebSocketServer": ""
|
|
}
|
|
|
|
[application]
|
|
|
|
config/name="WebSocket Chat Demo"
|
|
config/description="This is a demo of a simple chat implemented using WebSockets, showing both how to host a websocket server from Godot and how to connect to it."
|
|
run/main_scene="res://combo.tscn"
|
|
config/features=PackedStringArray("4.0")
|
|
config/icon="res://icon.png"
|
|
|
|
[gdnative]
|
|
|
|
singletons=[]
|
|
|
|
[rendering]
|
|
|
|
quality/driver/driver_name="GLES2"
|
|
vram_compression/import_etc=true
|
|
vram_compression/import_etc2=false
|