New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fofx-ws

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fofx-ws

A websocket plugin for the fofx platform

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

fofx-ws

An input/output plugin for WebSockets for fofx

  • type: "ws"
  • params (these go in your plugins.json):
    • port [int] this is the port your server listens on (default: 8080)
  • input params (these go in your nano.json input key):
    • endpoint [string] this will trigger on a request to http://localhost:\<port>/ws/<endpoint>
    • broadcast [bool] should the return value be broadcasted to all clients connected to the endpoint
  • output params (these go in your nano.json output key):
    • url [string] create a WebSocket client bound to this url, and send the nano's output to its server

Sample plugins.json

[
  {
    "name": "fofx-ws",
    "params": {
      "port": 6000
    }
  }
]

Sample nano.json

{
  "input": {
    "type": "ws",
    "endpoint": "foo"
  },
  "output": {
    "type": "ws",
    "url": "ws://localhost:6000/ws/bar"
  }
}

FAQs

Package last updated on 06 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts