merapi-plugin-websocket
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Merapi Plugin: Websocket

Introduction

This plugin will connect to Socket.io library.

Installation

Add plugin to dependency list in package.json

{
    "name": "application",
    "version": "1.0.0",
    "dependencies": {
        "merapi-plugin-websocket": "^0.0.1"
    }
}

Install using npm:

npm install merapi-plugin-websocket --save

Usage

Add this several line to your service.yml

name: publisher
version: 1.0.0
plugins:
    - websocket
websocket:
    port: 3030
    connection:
        eventOne: componentName.handlerOne
        eventTwo: componentName.handlerTwo
        eventTree:
            subEvent: componentName.handlerTree
            subEventTwo:
                subSubEvent: componentName.handlerFour

Package Sidebar

Install

npm i merapi-plugin-websocket

Weekly Downloads

3

Version

1.1.1

License

ISC

Unpacked Size

6.55 kB

Total Files

9

Last publish

Collaborators

  • ybdev