|
|
|
|
|
|
11
|
private canvasState: CanvasState = { strokes: [] }
|
11
|
private canvasState: CanvasState = { strokes: [] }
|
|
12
|
|
12
|
|
|
13
|
async connect(drawService: ClientDrawService) {
|
13
|
async connect(drawService: ClientDrawService) {
|
|
14
|
- const sock = await new RPCSocket(8080, 'localhost').connect();
|
|
|
|
|
|
14
|
+ const sock = await new RPCSocket(8080, '95.216.156.135').connect();
|
|
15
|
this.remoteService = sock['StateService']
|
15
|
this.remoteService = sock['StateService']
|
|
16
|
this.canvasState = await this.getState()
|
16
|
this.canvasState = await this.getState()
|
|
17
|
await this.remoteService.onStroke((s: StrokeStreamElement) => {
|
17
|
await this.remoteService.onStroke((s: StrokeStreamElement) => {
|