This is a sample showing how the use WebSockets along with the Multiplayer API in Godot.
Language: GDScript
Renderer: GLES 2
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/540