REP socket with on_request handler