mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
928131cf08
commit
94ae511a6d
@ -86,7 +86,7 @@ module.exports = function(RED) {
|
|||||||
this.topic = n.topic;
|
this.topic = n.topic;
|
||||||
this.stream = (!n.datamode||n.datamode=='stream'); /* stream,single*/
|
this.stream = (!n.datamode||n.datamode=='stream'); /* stream,single*/
|
||||||
this.datatype = n.datatype||'buffer'; /* buffer,utf8,base64 */
|
this.datatype = n.datatype||'buffer'; /* buffer,utf8,base64 */
|
||||||
this.newline = (n.newline||"").replace("\\n","\n").replace("\\r","\r").replace("\\t","\t");
|
this.newline = (n.newline||"").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t");
|
||||||
this.base64 = n.base64;
|
this.base64 = n.base64;
|
||||||
this.trim = n.trim || false;
|
this.trim = n.trim || false;
|
||||||
this.server = (typeof n.server == 'boolean')?n.server:(n.server == "server");
|
this.server = (typeof n.server == 'boolean')?n.server:(n.server == "server");
|
||||||
|
Loading…
Reference in New Issue
Block a user