entity.streamControl(function (clientId) {
// Let's use an example where we only want this entity to stream
// to one particular client with the id 4039589434
if (clientId === '4039589434') {
// Returning true tells the network stream to send data
// about this entity to the client
return true;
} else {
// Returning false tells the network stream NOT to send
// data about this entity to the client
return false;
}
});
Further reading: Controlling Streaming