Skip to content

Deepstream ASCII characters in various languages

aditya menon edited this page Apr 14, 2016 · 2 revisions

Deepstream depends on two ASCII print-control characters to parse messages. Since they are invisible on the screen, here's a cheatsheet for various languages for when you're trying to parse them raw:

Language Message Separator Character Part Separator Character
ASCII Character Code 30 (^^) 31 (^_)
JavaScript String.fromCharCode(30) String.fromCharCode(31)
Go (golang) string(byte(30)) string(byte(31))

######References:

  1. Wikipedia ASCII chart
  2. deepstream.io-client-js