mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 14:07:16 +02:00
Fix webclient communication
This commit is contained in:
parent
2417fdf197
commit
1fdfed13da
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ class WebSocketClient(WebSocketServerProtocol, Session):
|
|||
UTF-8 encoded text.
|
||||
|
||||
"""
|
||||
cmdarray = json.loads(payload)
|
||||
cmdarray = json.loads(str(payload, 'utf-8'))
|
||||
if cmdarray:
|
||||
self.data_in(**{cmdarray[0]: [cmdarray[1], cmdarray[2]]})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue