mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add sendMessage.
This commit is contained in:
parent
e96e54f791
commit
9c20591e3d
@ -427,6 +427,10 @@
|
|||||||
this.connection.websocket.send(EVENT.SEND_BROADCAST, { subject, body })
|
this.connection.websocket.send(EVENT.SEND_BROADCAST, { subject, body })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sendMessage(event: string, payload?: any) {
|
||||||
|
this.connection.websocket.send(event, payload)
|
||||||
|
}
|
||||||
|
|
||||||
public withApi<T>(c: new (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => T): T {
|
public withApi<T>(c: new (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => T): T {
|
||||||
return new c(this.api.config)
|
return new c(this.api.config)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user