Sign In Register

How can we help you today?

Start a new topic

SparkMessage.setExpireAfterHours , can the parameter be < 1 ?


is it possible to set expiration to minutes? like 1 minute?

can I pass the "1/60.0" to the function to get the expected 1 minute?



1 Comment

Hi Jo,

No, you can only pass a number greater than or equal to 0 here. For socket messages leaving this value blank will mean that the player will receive it the next time they come online. Setting it to 0 means it will be automatically dismissed if the player is not online.



1 person likes this
Login to post a comment