You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be abe to detect any upcoming message without taking care of the name, like that :
channel.onAny(function(){//Do something});
Remove messages listeners :
channel.removeListeners("name");//Remove all listeners for "name" messageconstlistener=channel.on("name",function(){//...})channel.removeListener(listener);//Remove the specific listener
And to detect specific message name only one time :
channel.once("name",function(){//...})
Client :
Would be really helpfull for the games with multiples servers to switch the server url and port by saving the message listeners :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is a short list of new freatures that can be really helpfull for client and server
Server :
Add the possibility to make the cors origins as an array, to allow multiples origins :
Server and client :
We should be abe to detect any upcoming message without taking care of the name, like that :
Remove messages listeners :
And to detect specific message name only one time :
Client :
Would be really helpfull for the games with multiples servers to switch the server url and port by saving the message listeners :
It's not about geckos.io, but it's related, idk if it's possible, but would be cool to allow to use an array instead of object in https://github.com/geckosio/typed-array-buffer-schema
Would work like that :
Then if the buffer contain only one type of entity, we don't have t create an object for only one array on it
Beta Was this translation helpful? Give feedback.
All reactions