Home Reference Source Test
import Message from 'osc-js/src/message.js'
public class | source

Message

Extends:

TypedMessage → Message

An OSC message consists of an OSC Address Pattern followed by an OSC Type Tag String followed by zero or more OSC Arguments

Test:

Constructor Summary

Public Constructor
public

constructor(address: string[] | string, args: ...MessageArgValue)

Create a Message instance

Member Summary

Public Members
public

args: *

public

types: *

Method Summary

Public Methods
public

add(item: MessageArgValue)

Add an OSC Atomic Data Type to the list of elements

Public Constructors

public constructor(address: string[] | string, args: ...MessageArgValue) source

Create a Message instance

Params:

NameTypeAttributeDescription
address string[] | string

Address

args ...MessageArgValue

OSC Atomic Data Types

Example:

const message = new Message(['test', 'path'], 50, 100.52, 'test')
const message = new Message('/test/path', 51.2)

Public Members

public args: * source

public types: * source

Public Methods

public add(item: MessageArgValue) source

Add an OSC Atomic Data Type to the list of elements

Params:

NameTypeAttributeDescription
item MessageArgValue

Test: