现在我们已经使用AJAX和Server Sent Event进行了动态客户端更新,让我们来看一下使用WebSocket在客户端和服务器之间进行真正的双向通信。
注意:在此视频中,我说过我将在此处发布指向我如何创建用于演示WebSocket的Aurelia Web App的链接。但是我当时还不能完成两个视频的编辑。因此,将于明天EDT发行“ Aurelia Todo Web App for Go on the Run”视频。
源代码:https://github.com/striversity/go-on-the-run。
Very helpful, thanks 🙂
Great vid. Tnx. Would like to see the same example but with broadcasting responses (todo) to all connected clients. With propper dead client handling.
Use arrow functions to handle the 'this' issue and no need to export the types local to the package.
Subscribed 🙂
Thank for video, good english