
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
iec104-protocol
Advanced tools
Only need to set a simple IP and PORT to achieve fast access and data analysis of 104 protocol
$ npm i iec104-protocol
For the connection you need, you only need to set the ip and port to achieve fast data collection
import {Protocol} from 'iec104-protocol'
/*
Before starting the program, you need to set the host IP address on the host. The program does not provide the host IP address setting by default
*/
const conn1 = new Protocol('198.123.0.1', 2404, (data) => {
for (const tmp of data) {
console.log(tmp)
}
})
conn1.connect()
const conn2 = new Protocol('198.123.0.2', 2404, (data) => {
for (const tmp of data) {
console.log(tmp)
}
})
conn2.connect()
By setting the autoReconnect option, you can automatically reconnect when the connection is disconnected
import { Protocol, Option } from 'iec104-protocol'
/*
If the connection is disconnected, the reconnection is automatically attempted every 10,000 ms by default. If the reconnection fails for 10 times, the reconnection interval changes to 60,000ms
*/
const option:Option = { autoReconnect: true}
const conn = new Protocol('198.123.0.1', 2404, (data) => {
for (const tmp of data) {
console.log(tmp)
}
}, option)
conn.connect()
The code will output some debugging information by default, you can choose to disable it by setting the quiet option to true
import { Protocol, Option } from 'iec104-protocol'
const option:Option = { quiet: true }
const conn = new Protocol('198.123.0.1', 2404, (data) => {
for (const tmp of data) {
console.log(tmp)
}
}, option)
conn.connect()
FAQs
104 protocol common toolkit
The npm package iec104-protocol receives a total of 4 weekly downloads. As such, iec104-protocol popularity was classified as not popular.
We found that iec104-protocol demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.