boobst = require '../boobst'
BoobstSocket = boobst.BoobstSocket

bs = new BoobstSocket(require '../test/test.config')

longstring = ''
[1..10000].forEach () ->
  longstring += 'olol'

bs.connect (err) ->
  this.zn 'USER'
  if err
    throw err
  this.set '^test', [], {
    "array": ["a", "ab", "abc"]
    "object":
      "a": "a"
      "b": 2
    "boolean": true
    "number": 42
    #"longstring": longstring
  }, () ->
    this.disconnect()