set remote IP

This commit is contained in:
Peter Millauer
2026-05-10 15:01:32 +02:00
parent b22971ef35
commit 0622098ffb
@@ -11,7 +11,7 @@ export class ClientStateService {
private canvasState: CanvasState = { strokes: [] } private canvasState: CanvasState = { strokes: [] }
async connect(drawService: ClientDrawService) { async connect(drawService: ClientDrawService) {
const sock = await new RPCSocket(8080, 'localhost').connect(); const sock = await new RPCSocket(8080, '95.216.156.135').connect();
this.remoteService = sock['StateService'] this.remoteService = sock['StateService']
this.canvasState = await this.getState() this.canvasState = await this.getState()
await this.remoteService.onStroke((s: StrokeStreamElement) => { await this.remoteService.onStroke((s: StrokeStreamElement) => {