Browse Source

Clarify serialization in README;

Bjorn Swenson 9 years ago
parent
commit
f021380227
1 changed files with 2 additions and 0 deletions
  1. 2 0
      README.md

+ 2 - 0
README.md

@@ -18,6 +18,8 @@ stream:write(true, 'bool')
 stream:write(1.8, 'float')
 stream:write(1.8, 'float')
 
 
 -- send over the network
 -- send over the network
+-- to convert a stream to a string, call tostring(stream)
+-- to convert a string to a stream, call trickle.create(string)
 
 
 stream:read('3bits') -- 7
 stream:read('3bits') -- 7
 stream:read('bool') -- true
 stream:read('bool') -- true