RealtimeHandler on_message fix