mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Use import
This commit is contained in:
parent
d5e04ac2f9
commit
207a0b839c
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const ReconnectingWebSocket = require('reconnecting-websocket');
|
||||
import * as ReconnectingWebsocket from 'reconnecting-websocket';
|
||||
import * as riot from 'riot';
|
||||
import CONFIG from './config';
|
||||
|
||||
@ -29,7 +29,7 @@ class Connection {
|
||||
.join('&')
|
||||
: null;
|
||||
|
||||
this.socket = new ReconnectingWebSocket(`${host}/${endpoint}${query ? '?' + query : ''}`);
|
||||
this.socket = new ReconnectingWebsocket(`${host}/${endpoint}${query ? '?' + query : ''}`);
|
||||
this.socket.addEventListener('open', this.onOpen);
|
||||
this.socket.addEventListener('close', this.onClose);
|
||||
this.socket.addEventListener('message', this.onMessage);
|
||||
|
Loading…
Reference in New Issue
Block a user