This commit is contained in:
open-trade 2022-01-19 19:19:29 +08:00
parent a90cacaeb8
commit b18da1fb39

View File

@ -27,7 +27,7 @@ export default class Websock {
constructor(uri: string, protocols: string) {
this._eventHandlers = {
message: (_: string) => {},
message: (_: any) => { },
open: () => { },
close: () => { },
error: () => { },
@ -76,6 +76,7 @@ export default class Websock {
if (e.data instanceof window.ArrayBuffer) {
let bytes = new Uint8Array(e.data);
}
this._eventHandlers.message(e.data);
}
hash(datas: [Uint8Array]): Uint8Array {