I agree it's strange but the syntax isn't that complicated.
1) Take a device that sends rt information and connect it to max
2) Use midiin to monitor whats goin on
3) Send data in the same format to midiout
4) Create an abstraction for your patch and name it le.rtout
5) Let us see :-D