From the course: Building Real-Time Web Apps with SignalR 2

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding chat rooms with groups

Adding chat rooms with groups

From the course: Building Real-Time Web Apps with SignalR 2

Start my 1-month free trial

Adding chat rooms with groups

- [Instructor] Now we want to add chat rooms to FunChat. To do this, we will utilize groups in SignalR. To get started, we will begin with adding some links in AUI to select different chat rooms. We'll go to our shared layout, and in the navbar here, we'll remove this message and add a new link. See, at html action link. This link is going to be called random for our random room. It's going to link to the index, action on the home controller, and it's going to have a root parameter of room equals random for the random room. (typing on computer) We'll copy this link a few times for our different rooms. This one will be our pets room. (typing on computer) And we'll do another one for our cars room, and change the root to cars. Now we have our links for our different rooms, we want to get access to this room's parameter in our gyro script. To do this, we'll first go to our controller, home controller, and add our room parameter. (typing on computer) We'll give it a default of main so…

Contents