Skip to content

Commit 77bdf99

Browse files
committed
Updated example project
1 parent 5263fa5 commit 77bdf99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/OSCKitSocketExample/OSCKitSocketExample/AppDelegate.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ class AppDelegate: NSObject, NSApplicationDelegate {
5353
func stopOSCPeer(_ sender: Any?) {
5454
print("Stopping OSC socket.")
5555
oscSocket?.stop()
56+
oscSocket = nil
5657
}
5758

5859
/// Send a test OSC message.
5960
@IBAction
6061
func sendTestOSCMessage(_ sender: Any?) {
6162
do {
6263
try oscSocket?.send(
63-
.message("/conduit/Status", values: ["System"])
64+
.message("/some/address/method", values: ["Test string", 123])
6465
)
6566
} catch {
6667
print("Error while sending: \(error)")

0 commit comments

Comments
 (0)