socket.sendClient

Method Server Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0

void socket.sendClient(int connection, string data)

The socket.sendClient method is used to send a packet of data to a specific connected ID.

Parameters

1) int connection The integer ID of the connection to send the data to.
2) string data The data to send to the connection.

Return

void This method doesn't return a value.

Types

Client Socket

Notes

  • This is only used if the socket was started in server mode via socket.start.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Server Related

        getClient
        getClientFromPlayerElement
        getClients
        localClient

        client.administrator
        client.cameraInterior
        client.console
        client.despawnPlayer
        client.disconnect
        client.game
        client.gameVersion
        client.getData
        client.index
        client.ip
        client.name
        client.ping
        client.player
        client.removeAllData
        client.removeData
        client.setData