O'Reilly logo

Programming WebAssembly with Rust by Kevin Hoffman

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

Building a Live Chat Application

Building on some basic exposure to the Yew programming model, it’s time to create something a bit more complex and powerful than an app that increments a counter. You’ve got the basic building blocks already: components, renderables, and services—the trick lies in figuring out where and how to stack those blocks.

For this next sample, we’re going to stack the building blocks to make a real-time chat application. This app will have an area that displays chat messages, an area that shows the currently online users, and an area that lets you enter your alias and connect.

Luckily we won’t have to do all the multi-user, real-time chat work ourselves. There are companies and products that can help here, including ...

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