Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some server send, broadcast, channel, flag for examples. #25

Open
Lightnet opened this issue Apr 22, 2024 · 0 comments
Open

add some server send, broadcast, channel, flag for examples. #25

Lightnet opened this issue Apr 22, 2024 · 0 comments

Comments

@Lightnet
Copy link

Trying to run some example for easy understand how this code work with Love2D and Lovr. Not much docs example or explain how it works.

server.lua

for peerIndex = 1, host:peer_count() do
    local peer = host:get_peer(peerIndex)
    if peer then
      peer:send("Hi")
    end
  end

It took time to dig some issues to find this. #19

If you have time to update some example on client and server for send, broadcast, channel and flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant