 
   # Debugging utilities
   $(document).on 'keydown', '*', 'ctrl+f12', ->
-    {log} = require './proxy'
     lw = open ''
     lw.document.write '''
       <html>

      b.appendChild lw.document.createTextNode s
      if atEnd then b.scrollTop = b.scrollHeight - b.clientHeight
      return
    wr log.get().join ''
    log.listeners.push wr
    false

  # Mac menu
  if process.platform == 'darwin'

      onevent: ({data}) -> (for f in @[data[0]] or [] then f data[1..]...); return
      on: (e, f) -> (@[e] ?= []).push f; @
    socket = new LocalSocket; socket1 = new LocalSocket; socket.other = socket1; socket1.other = socket
    setTimeout (-> proxy.Proxy() socket1), 1
    socket

  # These two are overridden for the Mac
