   }
   
   private func registerWithLiveOSC() {
-    sendMessage(OSCMessage(address: "/remix/set_peer", arguments: ["", localPort]))
+    sendMessage(OSCMessage(address: "/remix/set_peer", arguments: ["", server.getPort()]))
   }
 }


    super.init()
    server.delegate = self
    server.listen(localPort)
  }
  
  func sendMessage(message: OSCMessage) {

import LlamaKit

class OSCService : NSObject, OSCServerDelegate {
  private let client = OSCClient()
  private let server = OSCServer()
  private let incomingMessagesSink : SinkOf<Event<OSCMessage, NoError>>
