implemented a simple online chat based on web socket