From 2ddb6ae327eac85d171bf41a26ab3d8bee56f04a Mon Sep 17 00:00:00 2001
From: Cam <yulinfeng000@gmail.com>
Date: Mon, 28 Nov 2022 18:50:05 +0800
Subject: [PATCH] add deprecated warn info

---
 blive/eeframework.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/blive/eeframework.py b/blive/eeframework.py
index e4b92c3..4ac2be2 100644
--- a/blive/eeframework.py
+++ b/blive/eeframework.py
@@ -1,3 +1,4 @@
+import warnings
 import json
 import asyncio
 from typing import List, Union
@@ -38,6 +39,7 @@ class BLiver(AsyncIOEventEmitter):
         self.aio_session = aiohttp.ClientSession()
 
     def register_handler(self, event: Union[Events, List[Events]], handler):
+        warnings.warn("`register_handler` is deprecated function please use `on`",DeprecationWarning)
         self.on(event, handler)
 
     async def heartbeat(self):