These are chat archives for ProtoDef-io/node-protodef

10th
Aug 2016
plexigras
@plexigras
Aug 10 2016 14:35

why dose this work ?

console.log(proto.parsePacketBuffer('i32',data));

but not this

proto.addType('blup','i32');
console.log(proto.parsePacketBuffer('blup',data));
Romain Beaumont
@rom1504
Aug 10 2016 14:51
hmm really ?
let me try this
Romain Beaumont
@rom1504
Aug 10 2016 15:02
hmm there was a discussion about aliases some time ago
but I thought it already worked
anyway
plexigras: proto.addType('blup',['i32',[]]) works
I'll open an issue to make proto.addType('blup','i32'); work but you can use ^ in the meantime
plexigras
@plexigras
Aug 10 2016 15:08
ok nice.
plexigras
@plexigras
Aug 10 2016 18:52
how do iadd sometng which ahs the type "String enum"
Hans Elias J.
@hansihe
Aug 10 2016 19:03
plexigras: what do you mean by string enum?
plexigras
@plexigras
Aug 10 2016 19:08
its sais its the Field Type
Hans Elias J.
@hansihe
Aug 10 2016 19:09
where does it say this?
Hans Elias J.
@hansihe
Aug 10 2016 19:10
ah, that just means it's one of the three options
it's a normal string
plexigras
@plexigras
Aug 10 2016 19:11
ahh ok. thx.