Sending a protocol object without any properties causes JS-error

Issue #10 new
Patric Harglin
created an issue

if you have a styx object without any properties (such as sit-in/sit-out requests in the poker) the generated javascript save() method of that class returns an empty array (=[]), this causes a javascript error since the connector expect an array of the type byteArray.