I'm not sure if the subject is clear.
What I'm trying to achieve is as follows:
Let's consider a websocket server object in the c++ side. It is possible to define callback functions for connection opened, closed, message received and some other events.
I want to define those callback functions in WinCC OA and register them to the server object's event handlers. In other words, I need to send information in both directions.
Imagine that my server manager class in the library can handle multiple servers and my servers can handle multiple clients, my callback in wincc oa should look like for the message received event:
Code: Select all
CallbackFunction(uint serverId, uint clientId, string message | blob message)
{
doWhatever(serverId, clientId, processMessage(message));
}Any advice/solution would be appreciated.
Thanks in advance. With best regards,
Ozan