JSPM

  • Created
  • Published
  • Downloads 131
  • Score
    100M100P100Q63804F
  • License See License in LICENSE.md

Provides the ultimate solution for real-time event management. Designed to make your applications dynamic and responsive, IoTide offers unparalleled flexibility in handling events on-the-fly. Effortlessly create interactive web applications, live data dashboards, chat applications, and collaborative tools with seamless communication between your server and connected clients.

Package Exports

  • @trap_stevo/iotide

Readme

IoTide

IoTide provides the ultimate solution for real-time event management. Designed to make your applications dynamic and responsive, IoTide offers unparalleled flexibility in handling events on-the-fly. Effortlessly create interactive web applications, live data dashboards, chat applications, and collaborative tools with seamless communication between your server and connected clients.

Features

  • Dynamic Event Handling: Easily register and handle events dynamically.
  • Real-Time Communication: Seamlessly emit and receive events between server and clients.
  • Flexible API: Intuitive methods to manage events and data flow.
  • Scalable Architecture: Handle multiple connections with ease.
  • Easy Integration: Quickly integrate into your existing projects with minimal setup.

Installation

Install IoTide using npm:

npm install iotide

Usage

const IoTide = require('@trap_stevo/iotide');

const server = new IoTide(3000);

// Emit a custom event after 5 seconds
setTimeout(() => {
    server.emit('customEvent', { message: 'Hello, clients!' });
}, 5000);

// Register a dynamic event handler
server.on('dynamicEvent', (data) => {
    console.log('Dynamic event received:', data);
});