import RPi.GPIO as GPIO
import time

from socketIO_client import SocketIO, LoggingNamespace
socketIO = SocketIO('localhost:3000')

def onCommand(*args):
    print(args[0].split('+')[0])

while (True):
    socketIO.on("commands", onCommand)
    socketIO.wait(seconds=1)
    socketIO.off("sequencePi")
import RPi.GPIO as GPIO
import time

from socketIO_client import SocketIO, LoggingNamespace
socketIO = SocketIO('localhost:3000')

def onCommand(*args):
    print(args[0].split('+'))

while (True):
    socketIO.on("commands", onCommand)
    socketIO.wait(seconds=1)
    socketIO.off("sequencePi")
--- 
+++ 
@@ -5,7 +5,7 @@
 socketIO = SocketIO('localhost:3000')
 
 def onCommand(*args):
-    print(args[0].split('+'))
+    print(args[0].split('+')[0])
 
 while (True):
     socketIO.on("commands", onCommand)
Print first element of array first
