Skip to content

Commit 4b38835

Browse files
committed
fix: resolve unknown method response error
1 parent 95530d5 commit 4b38835

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ detector.find(on_find_device)
4343

4444
Host in webserver
4545
```python
46-
from aceinna.bootstrap import Webserver
46+
from aceinna.bootstrap import Default
4747

48-
app = Webserver(
48+
app = Default(
4949
device_type='openimu',
5050
com_port='COM1',
5151
port=8001,

src/aceinna/core/tunnel_web.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def on_message(self, message):
6565

6666
if not method:
6767
self.response_unkonwn_method()
68+
return
6869

6970
try:
7071
self._handle_message(method, parameters)

0 commit comments

Comments
 (0)