mirror of
https://github.com/coder/code-server.git
synced 2025-08-02 14:02:51 +08:00
Hook up shared process sorta
This commit is contained in:
@ -117,9 +117,11 @@ export class Entry extends Command {
|
||||
app.wss.on("connection", (ws, req) => {
|
||||
const id = clientId++;
|
||||
|
||||
if (sharedProcess.state === SharedProcessState.Ready) {
|
||||
sendSharedProcessReady(ws);
|
||||
}
|
||||
ws.on("open", () => {
|
||||
if (sharedProcess.state === SharedProcessState.Ready) {
|
||||
sendSharedProcessReady(ws);
|
||||
}
|
||||
});
|
||||
|
||||
logger.info(`WebSocket opened \u001B[0m${req.url}`, field("client", id), field("ip", req.socket.remoteAddress));
|
||||
|
||||
|
Reference in New Issue
Block a user