uspgamedev / luasteam

Bindings to connect lua with Steam API
https://luasteam.readthedocs.io/en/stable/
MIT License
129 stars 23 forks source link

Possible error in the documentation #30

Open Introvertigo opened 1 year ago

Introvertigo commented 1 year ago

The example for the sendMessageToConnection function given in the documentation is:

local result = Steam.networkingSockets.sendMessageToConnection(connection, "Ping", Steam.networkingSockets.flags.Reliable)

Shouldnt the flag key be Send_Reliable instead of just Reliable ?

https://luasteam.readthedocs.io/en/stable/networking_sockets.html#networkingSockets.sendMessageToConnection

zorfmorf commented 12 months ago

Yes, the example seems wrong. I will get it fixed. I think in this case it will still default to reliable anyway though.