markup
add rateEvent socket handler