 
 initWithDotEnsime = (c) ->
   dotEnsime = readDotEnsime()
+
   initMsg = swankRpc("(swank:init-project #{dotEnsime})")
   console.log("Init Msg: #{initMsg}")
   c.write(initMsg)

swankProtocol = require './swank-protocol'
{Subscriber} = require 'emissary'


ensimeMessageCounter = 1

_portFile = null
portFile = ->

    setTimeout(->
      # Open up socket to the server
      client = openSocketAndSend(portFile(), (c) ->
        #getServerInfo(c)
        initWithDotEnsime(c)
      )

