         
             if "#bundle\0".toData() == data.subdata(in: Range(0...7)){//matches string #bundle
                 if let bundle = decodeBundle(data){
-                    self.postNotification(bundle)
+                    self.sendToDelegate(bundle)
                 } else {
                     print("invalid packet")
                 }
             } else {
                 if let message = decodeMessage(data){
-                    self.postNotification(message)
+                    self.sendToDelegate(message)
                 } else {
                     print("invalid packet")
                 }

import Foundation

public class OSCServer {
    public var address: String {

            server = UDPServer(addr: self.address, port:self.port)
        }
    }
    public var delegate: OSCServerDelegate?
    public var running = false
    var server: UDPServer
    
