alfredbaudisch / godotphoenixchannels Goto Github PK
View Code? Open in Web Editor NEWGDScript and Godot client for real-time Phoenix Framework Channels
License: MIT License
GDScript and Godot client for real-time Phoenix Framework Channels
License: MIT License
I might be very wrong about this, so please school me if I need it! :D
This signal:
_error = channel.connect("on_join_result", self, "_on_Channel_join_result")
Doesn't seem to be firing at all.
I've been able to work around it by manually triggering from the on_channel_event
signal.
I believe it has something to do with the _join_ref
.
I wonder if the join is called multiple times, redefining the _join_ref
and then it fails to match when the first call responds?
My network implementation:
Here is some context from my live streams of the issue:
Basic demo
What do you think is required before this can be published to the Godot AssetLib?
I'm happy to help if you'd like someone to add unit tests to what is already there perhaps... or additional testing & docs!
The code in branch 4.0 has formatting/styling inconsistencies, like parameter commas without spacing added by the Godot 4.0 project converter:
https://github.com/alfredbaudisch/GodotPhoenixChannels/blob/4.0/Phoenix/Scripts/Channel.gd#L45: func _init(socket,topic : String,params : Dictionary = {},presence = null):
Make it consistent with the rest of the code.
Including push timeout
The demo implemented with #16 showcases the features of the library, but not exactly a game.
I am unable to get the demo to connect: _on_Socket_error: {message:connection error}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.