You'll need to write your own parsing code; I suggest start at TP.receive() and then copy code starting at that path into a method. That should be simple, but it will of course only parse messages from 2.6.x.
Yes, 2.6.x is very ancient, but it shouldn't be hard to upgrade to 4.x or 5.x...
Cheers