parent
2512f3066a
commit
b35ab8eb5a
@ -0,0 +1,21 @@ |
|||||||
|
import * as WS from 'ws' // eslint-disable-line
|
||||||
|
import { PluginClient } from '@remixproject/plugin' |
||||||
|
|
||||||
|
export class SlitherClient extends PluginClient { |
||||||
|
methods: Array<string> |
||||||
|
websocket: WS |
||||||
|
currentSharedFolder: string |
||||||
|
|
||||||
|
constructor (private readOnly = false) { |
||||||
|
super() |
||||||
|
this.methods = [] |
||||||
|
} |
||||||
|
|
||||||
|
setWebSocket (websocket: WS): void { |
||||||
|
this.websocket = websocket |
||||||
|
} |
||||||
|
|
||||||
|
sharedFolder (currentSharedFolder: string): void { |
||||||
|
this.currentSharedFolder = currentSharedFolder |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue