Skip to content

Event serialisation and deserialisation for the ARC System.

License

Notifications You must be signed in to change notification settings

arcs-vr/arc-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCS Event Normalization

js-standard-style

This component serializes and deserializes HTML Events and aims for minimal data usage.

Usage

import {parsePayload, createPayload} from 'arc-events' 

Functions

createPayload(Event event, String|Number type = null): String

Serializes an event. You can pass in a custom type if you want it to differ from what's in event.type.

parsePayload(String payload): Event

Deserializes a payload and returns the appropriate event that can be dispatched. For general purposes, look at the arc-aframe-system, which does this for you.

More

Look at the arcs-vr/arc-aframe-vue-template for easier setup and at the arcs-vr/arc-demo for example usage.

Authors and contributors

About

Event serialisation and deserialisation for the ARC System.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published