supabase-community / godot-engine.supabase

A lightweight addon which integrates Supabase APIs for Godot Engine out of the box.
MIT License
171 stars 19 forks source link

Rework realtime client #53

Closed stmn closed 1 year ago

stmn commented 1 year ago

I reworked Realtime Client basing on that code:

https://github.com/godotengine/godot-demo-projects/blob/4.0-dev/networking/websocket_chat/websocket/WebSocketClient.gd

Reason: Currently Realtime Client is not usable at all (WebSocketPeer need to be handled differently than WebSocketClient from 3.x). After changes it looks somehow usable.

fenix-hub commented 1 year ago

Thanks, looks good to me for now. Check the review and I'm ready with merging.

stmn commented 1 year ago

Could you add static typing?

Sure, added. I will test realtime feature more soon (probably) while making some game lobby mechanism or simple game.

fenix-hub commented 1 year ago

Thanks!