Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f5735b680 | ||
|
|
58b5a1053c | ||
|
|
0622098ffb |
@@ -11,7 +11,7 @@ export class ClientStateService {
|
||||
private canvasState: CanvasState = { strokes: [] }
|
||||
|
||||
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.canvasState = await this.getState()
|
||||
await this.remoteService.onStroke((s: StrokeStreamElement) => {
|
||||
|
||||
@@ -40,7 +40,7 @@ export class ExpressService implements Initializable {
|
||||
connectionHandler: (socket) => { this.connectionCount += 1 },
|
||||
})
|
||||
rpcServer.attach(httpServer)
|
||||
rpcServer.listen(PORT)
|
||||
httpServer.listen(PORT, '0.0.0.0')
|
||||
|
||||
console.log("Server up on", PORT)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user