1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-24 23:26:17 +09:00

refactor: fix type

This commit is contained in:
syuilo 2022-02-19 14:30:42 +09:00
parent 645cf109e9
commit 1dc06f7ad3

View File

@ -109,7 +109,8 @@ export default class Connection {
*
*/
@autobind
private async onWsConnectionMessage(data: websocket.IMessage) {
private async onWsConnectionMessage(data: websocket.Message) {
if (data.type !== 'utf8') return;
if (data.utf8Data == null) return;
let obj: Record<string, any>;