   # write socket.io color data to buffer as UART instruction
   #
   _to_buffer: (data) ->
-    # logger.info "writing to buffer #{data.color}"
-    buffer = @_data_to_instruction(data)
+    @buffer = @_data_to_instruction(data)
 
 module.exports = Server

  # connect socket.io client to url, bind to socket.io events and our custom events
  #
  _setup_sio: ->
    # logger.debug "Socket.io connecting to url #{@_url()}"
    socket = new io(@_url(), {})
    socket.on 'connect', =>
      console.log "connected to socket at #{@_url()}"

      # make an initial call to our recursive _write_pipe() method
      @_write_pipe()

io     = require 'socket.io-client'
logger = require './logger'
FS     = require 'fs'

class Server
  buffer: ''
  ws: undefined

  constructor: (@host, @port, @options = {}) ->

  #
