Channel Error Handling
A significant difference between a traditional web Controller and a Channel is that the Channel is long-lived. In a perfect world, a Channel will live for the entire life of the connection without being interrupted. But we don’t live in an ideal world, and disconnections will occur in our application. They may occur because of a bug in our application causing a crash or because the client’s internet connection is not stable. Let’s cause a crash in our
PingChannel to observe what happens.