# socket-example **Repository Path**: cl9000/socket-exampe ## Basic Information - **Project Name**: socket-example - **Description**: a Real-Time App with Socket.IO, Angular, and Node.js - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-11-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # socket-exampe #### 项目介绍 A Real-Time App with Socket.IO, Angular, and Node.js #### 软件架构 Create a Real-Time App with Socket.IO, Angular, and Node.js [参考链接](https://alligator.io/angular/socket-io/) #### socket-server ` $ cd socket-server` ` $ node src/app.js` #### socket-app ` $ cd socket-app` ` $ ng serve --open` >打开多个浏览器进行测试 #### 注释 运行报错 global is undefined 解决:在**src/polyfills.ts**中添加如下代码 ` (window as any).global = window; `