A framework for WebSocket application