# MappingContext

Type: MappingContext

MappingContext to apply in this connection containing JavaScript scripts mapping from external messages to
internal Ditto Protocol messages. Usage of MappingContext is deprecated, use PayloadMappingDefinitions instead.

Schema: [MappingContext](https://sourcey-ditto.pages.dev/http-api-doc/models/mappingcontext.md)

deprecated: true

- `incomingScript` (required)
  Type: string
  
  The mapping script for incoming messages

- `outgoingScript` (required)
  Type: string
  
  The mapping script for outgoing messages

- `loadBytebufferJS` (required)
  Type: boolean
  
  Whether or not ByteBufferJS library should be included

- `loadLongJS` (required)
  Type: boolean
  
  Whether or not LongJS library should be included