WebSocket教程04(增强的聊天室Web应用程序)



00:07演示应用程序的预构建版本
01:27创建在GlassFish 4上运行的新Web项目
01:44从WebSocketPrj02重用代码
02:22更新default.html添加usersTextArea
03:09添加代码以处理浏览器关闭
03:28修改ChatroomServerEndpoint
03:58添加getUserNames方法
05:00添加buildJsonUsersData方法
06:30更新handleClose方法
07:19更新handleOpen方法
07:34更新handleMessage方法
08:18使用GlassFish 4的测试运行完成的应用程序

网站+下载源代码@ https://zaneacademyapp.appspot.com或http://zaneacademy.com或直接@https://sites.fastspring.com/zaneacademy/product/all下载。