cleandart/clean_sync — pull request #67 by jurom (2014-08-28 21:20:46+00:00)
Title: stream transformation added

JSON communication via stream is now made easier with helper methods transformStream and writeJSON (yeah, naming should probably be discussed..) - transformStream takes the socket stream consisting of List and transforms it into a stream of single decoded JSON messages. Method writeJSON takes socket and string and writes a message to given socket in a way that it can be transformed by transformStream. In order to use transformStream, data received in that stream has to be written using writeJSON.