Deprecated old socket nodes

This commit is contained in:
Nicholas O'Leary 2013-10-13 19:25:53 +01:00
parent eb9b31a21b
commit fff61861c1
6 changed files with 8 additions and 4 deletions

View File

@ -47,7 +47,7 @@
<script type="text/javascript">
RED.nodes.registerType('socket in',{
category: 'input',
category: 'deprecated',
color:"Silver",
defaults: {
name: {value:""},

View File

@ -18,6 +18,7 @@ var RED = require("../../red/red");
function SocketIn(n) {
RED.nodes.createNode(this,n);
this.warn("node type deprecated");
this.port = n.port;
this.topic = n.topic;
this.trans = (n.transport||n.trans||"").toLowerCase();

View File

@ -44,7 +44,7 @@
<script type="text/javascript">
RED.nodes.registerType('socket out',{
category: 'output',
category: 'deprecated',
color:"Silver",
defaults: {
host: {value:"127.0.0.1",required:true},

View File

@ -18,6 +18,7 @@ var RED = require("../../red/red");
function SocketOut(n) {
RED.nodes.createNode(this,n);
this.warn("node type deprecated");
this.host = n.host;
this.port = n.port * 1;
this.name = n.name;

View File

@ -46,7 +46,7 @@
<script type="text/javascript">
RED.nodes.registerType('multicast in',{
category: 'input',
category: 'deprecated',
color:"Silver",
defaults: {
name: {value:""},
@ -103,7 +103,7 @@
<script type="text/javascript">
RED.nodes.registerType('multicast out',{
category: 'output',
category: 'deprecated',
color:"Silver",
defaults: {
name: {value:""},

View File

@ -20,6 +20,7 @@ var dgram = require('dgram');
// The Input Node
function MCastIn(n) {
RED.nodes.createNode(this,n);
this.warn("node type deprecated");
this.group = n.group;
this.port = n.port;
this.host = n.host || null;
@ -71,6 +72,7 @@ RED.nodes.registerType("multicast in",MCastIn);
// The Output Node
function MCastOut(n) {
RED.nodes.createNode(this,n);
this.warn("node type deprecated");
this.group = n.group;
this.port = n.port;
this.host = n.host || null;