NetworkClient

Show Deprecated
Not Creatable
Service
Not Replicated

This service is responsible for connecting a client to a server.

Summary

Properties

Events


Fired when the client successfully connects to a server. Returns a string showing the server's IP and Port, and the client's ClientReplicator.


Fired if the client fails to connect to the server.

Methods

Properties

Events

ConnectionAccepted

Fired when the client successfully connects to a server. Returns a string showing the server's IP and Port, and the client's ClientReplicator.

Parameters

peer: string
replicator: Instance

ConnectionFailed

Fired if the client fails to connect to the server.

Parameters

peer: string
code: number
reason: string

Methods