A realtime application framework for building Web API based on WebSocket