parse to json if uuid == 1
make sure you have organized json format, recommand use send
method below for
auto assemble json.
protocol: { taskId: //type: once, //to consider(for security, such as client need a stream but server only send one message) load: @param any }
holder taskId inner the method
holder taskId inner the method
should be case class
complete the stream ahead of time
create a JProtocol to dispatch all json relate info bind with socket and it's read stream