Add base debug WS route
This commit is contained in:
15
matrixgw_frontend/src/api/WsApi.ts
Normal file
15
matrixgw_frontend/src/api/WsApi.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { APIClient } from "./ApiClient";
|
||||
|
||||
export type WsMessage = {
|
||||
type: string;
|
||||
[k: string]: any;
|
||||
};
|
||||
|
||||
export class WsApi {
|
||||
/**
|
||||
* Get WebSocket URL
|
||||
*/
|
||||
static get WsURL(): string {
|
||||
return APIClient.backendURL() + "/ws";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user