Event

network:peer:join

Server

Fired when a peer connects to the server

Signal

"network:peer:join"

Arguments

TypeNameDescription
intpeer_idId of the peer that joined

This signal is only fired on the server.

  • The server starts every running resource on the peer after this fires.

Example

Greet a joining peer
util.event.on("network:peer:join", function(peer_id)
    core.engine.print("info", "Peer joined:", peer_id)
end)

On this page