# Best practices

# Events

Avoid sending HTML via WebSockets.
Think of WebSockets as a notification hub: you just send a notification about a certain event, but you call a HTTP controller to update the content on the page.

# Bad practice


# Good practice