Skip to content

Files

Latest commit

 

History

History
29 lines (21 loc) · 560 Bytes

context.md

File metadata and controls

29 lines (21 loc) · 560 Bytes

💻 Context

The context object is passed in when instantiating a team to identify the runtime environment; it identifies the current local user, the device we're running on, and client application.

const context = { user, device, client }

Device

The name of the device needs to be unique among this user's devices.

const device = {
  userName: 'bob',
  deviceName: 'iPhone 11',
}

Client

Optionally, you can identify the client application.

const client = {
  name: 'MyAmazingTeamApp',
  version: '1.2.3',
}