mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Deprecated old socket nodes
This commit is contained in:
parent
eb9b31a21b
commit
fff61861c1
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('socket in',{
|
RED.nodes.registerType('socket in',{
|
||||||
category: 'input',
|
category: 'deprecated',
|
||||||
color:"Silver",
|
color:"Silver",
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value:""},
|
name: {value:""},
|
||||||
|
@ -18,6 +18,7 @@ var RED = require("../../red/red");
|
|||||||
|
|
||||||
function SocketIn(n) {
|
function SocketIn(n) {
|
||||||
RED.nodes.createNode(this,n);
|
RED.nodes.createNode(this,n);
|
||||||
|
this.warn("node type deprecated");
|
||||||
this.port = n.port;
|
this.port = n.port;
|
||||||
this.topic = n.topic;
|
this.topic = n.topic;
|
||||||
this.trans = (n.transport||n.trans||"").toLowerCase();
|
this.trans = (n.transport||n.trans||"").toLowerCase();
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('socket out',{
|
RED.nodes.registerType('socket out',{
|
||||||
category: 'output',
|
category: 'deprecated',
|
||||||
color:"Silver",
|
color:"Silver",
|
||||||
defaults: {
|
defaults: {
|
||||||
host: {value:"127.0.0.1",required:true},
|
host: {value:"127.0.0.1",required:true},
|
||||||
|
@ -18,6 +18,7 @@ var RED = require("../../red/red");
|
|||||||
|
|
||||||
function SocketOut(n) {
|
function SocketOut(n) {
|
||||||
RED.nodes.createNode(this,n);
|
RED.nodes.createNode(this,n);
|
||||||
|
this.warn("node type deprecated");
|
||||||
this.host = n.host;
|
this.host = n.host;
|
||||||
this.port = n.port * 1;
|
this.port = n.port * 1;
|
||||||
this.name = n.name;
|
this.name = n.name;
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('multicast in',{
|
RED.nodes.registerType('multicast in',{
|
||||||
category: 'input',
|
category: 'deprecated',
|
||||||
color:"Silver",
|
color:"Silver",
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value:""},
|
name: {value:""},
|
||||||
@ -103,7 +103,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('multicast out',{
|
RED.nodes.registerType('multicast out',{
|
||||||
category: 'output',
|
category: 'deprecated',
|
||||||
color:"Silver",
|
color:"Silver",
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value:""},
|
name: {value:""},
|
||||||
|
@ -20,6 +20,7 @@ var dgram = require('dgram');
|
|||||||
// The Input Node
|
// The Input Node
|
||||||
function MCastIn(n) {
|
function MCastIn(n) {
|
||||||
RED.nodes.createNode(this,n);
|
RED.nodes.createNode(this,n);
|
||||||
|
this.warn("node type deprecated");
|
||||||
this.group = n.group;
|
this.group = n.group;
|
||||||
this.port = n.port;
|
this.port = n.port;
|
||||||
this.host = n.host || null;
|
this.host = n.host || null;
|
||||||
@ -71,6 +72,7 @@ RED.nodes.registerType("multicast in",MCastIn);
|
|||||||
// The Output Node
|
// The Output Node
|
||||||
function MCastOut(n) {
|
function MCastOut(n) {
|
||||||
RED.nodes.createNode(this,n);
|
RED.nodes.createNode(this,n);
|
||||||
|
this.warn("node type deprecated");
|
||||||
this.group = n.group;
|
this.group = n.group;
|
||||||
this.port = n.port;
|
this.port = n.port;
|
||||||
this.host = n.host || null;
|
this.host = n.host || null;
|
||||||
|
Loading…
Reference in New Issue
Block a user