O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we implemented real-time web application functionality in the form of IGWEB's live chat feature. You learned how to establish a persistent connection between the web server and the web client using a WebSocket. On the server-side, we introduced you to the websocket package from the Gorilla toolkit project. On the client-side, we introduced you to the gopherjs/websocket/websocketjs package from the GopherJS project.

We created a simple, rudimentary chatbot that answers questions posed by users in real-time, with the conversation between the human and the bot being relayed through the established WebSocket connection. Since the real-time web application functionality depends on the persistent connection, we also added ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required