add matchmaking progress screen
This commit is contained in:
@@ -19,6 +19,10 @@ async function request(path, { method = 'GET', body, token, formData } = {}) {
|
||||
return data
|
||||
}
|
||||
|
||||
export function wsUrl(path = '') {
|
||||
return `${API_URL.replace(/^http/, 'ws')}${path}`
|
||||
}
|
||||
|
||||
export class ApiError extends Error {
|
||||
constructor(message, status) {
|
||||
super(message)
|
||||
|
||||
Reference in New Issue
Block a user