This document discusses adding WebSocket support to Cloud Foundry. It describes how Cloud Foundry currently uses nginx and a router based on HTTP/1.1. It then proposes modifications to nginx and the router code to support WebSocket by upgrading connections and passing frames between client and app connections. Code snippets from router.rb and a new websocket_connection.rb module are provided as examples.