assets: Use new websocket client

This commit is contained in:
Tom Wiesing 2023-11-13 11:04:03 +01:00
parent e91f1f2413
commit 6a739df24b
No known key found for this signature in database
67 changed files with 437 additions and 562 deletions

View file

@ -0,0 +1,8 @@
import { default as Call, CallSpec } from '../apiclient/websocket';
/** LocalCall is like Call, but uses the current page */
export default class LocalCall extends Call {
constructor(spec: CallSpec) {
super({ url: location.protocol.replace('http', 'ws') + '//' + location.host + '/api/v1/ws'}, spec);
}
}