Petal Docs
  • Introduction
  • Connect to muse (Free)
    • Connect muse & Stream Raw Data
      • Connect muse to Mac
      • Connect muse to Windows
  • Receive Data Streams (Free)
    • Receive an LSL Stream
      • Python Examples
      • Node Examples
    • Receive an OSC Stream
      • Python Examples
      • Node Examples
    • Receive Webhooks
      • Python Examples
      • Node Examples
  • Log Data (Free)
    • Logging Data
  • Metrics API (Maker Plan)
    • API Integration
    • Make Metrics API calls
      • Python Examples
      • Node.js Examples
  • Receive Data Streams (Maker Plan)
    • Receive an LSL Stream
      • Python Examples
      • Node Examples
    • Receive an OSC Stream
      • Python Examples
      • Node Examples
    • Receive Webhooks
      • Python Examples
      • Node Examples
  • Glossary of Terms
    • Glossary of Terms
  • 🧪Markers
    • 🧪Markers User Guide
Powered by GitBook
On this page
  • Node Installation
  • Script Examples

Was this helpful?

  1. Receive Data Streams (Maker Plan)
  2. Receive Webhooks

Node Examples

PreviousPython ExamplesNextGlossary of Terms

Last updated 3 years ago

Was this helpful?

Node Installation

See the for full scripts. We used Node.js 10.15.3 for these examples. If you don't use LSL, you can probably use versions 14.15.1+.

Install the dependencies:

npm install

Script Examples

webhook_receive.js

This script receives all webhook messages and prints them to the console.

node webhook_receive.js -i localhost -p 14739
getting started repo