assets: Use new websocket client
This commit is contained in:
parent
e91f1f2413
commit
6a739df24b
67 changed files with 437 additions and 562 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue