Compare commits

3 Commits
Author SHA1 Message Date
Peter Millauer 2f5735b680 Change domain to nitowa.xyz 2026-05-10 16:16:35 +02:00
Peter Millauer 58b5a1053c allow access from 0.0.0.0 2026-05-10 15:06:07 +02:00
Peter Millauer 0622098ffb set remote IP 2026-05-10 15:01:32 +02:00
2 changed files with 2 additions and 2 deletions
@@ -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, 'nitowa.xyz').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) => {
@@ -40,7 +40,7 @@ export class ExpressService implements Initializable {
connectionHandler: (socket) => { this.connectionCount += 1 }, connectionHandler: (socket) => { this.connectionCount += 1 },
}) })
rpcServer.attach(httpServer) rpcServer.attach(httpServer)
rpcServer.listen(PORT) httpServer.listen(PORT, '0.0.0.0')
console.log("Server up on", PORT) console.log("Server up on", PORT)
}; };