Socketio Dat: onReceiveEvent never called

Hello,
i am playing with the Experimental:DAT Socketio

i know it is Experimental.

i have it working to some degree with the code provided.
i get a message in the console when
the events onOpen and onClose are called.

i can all so see in my node server when i connect or disconnect.
but the onReceive event is never called.

i know that there is data there. i have an html page running some JS that shows me the data on the socket. i did this to confirm there is something there.

i am not sure why the onReceiveEvent is never called.

the simple code:

def onReceiveEvent(dat, rowIndex, message, event):
	print('message recived')
	print(message)
	return

def onOpen(dat):
	print('connection opened')
	return

def onClose(dat, failure):
	print('connection closed')
	return

So after playing with this for way to long… because that is what i do.
i feel like maybe the problem is that the message packet main tag is something other then what i am sending it.

i am in node.js emitting this (“message”,data)
in my html test i am looking for message then using that data (witch happens to be a number).
in my html if i look for something other than message it acts the same as the DAT does.

Is your socketio DAT listening to “message” events (via its second DAT input)?

i guess i don’t fully understand your response.
my understanding:
if there is data coming in the onReceiveEvent is called.
i can do any thing from that point in side the function.
i chose to just send a message to the console that say hay this event was called.
i never get to that point.

once i know that the function is getting called i can process the incoming data how ever i want.

The socketio DAT won’t listen to any events by default; events must be listened for explicitly. You do this by adding the event names to a table DAT then by connecting that to the second input of your socketio DAT.

https://docs.derivative.ca/Experimental:SocketIO_DAT

thank you.
that helped i did not understand that. and i have red that page like 10 times.