How To Listen WebSocket Messages And Pops Up In Real Time Example Code Leave a Comment / JavaScript / WebSocket This article mainly introduces the front-end example code that can listen to WebSocket messages and pops up in real-time. This example assumes that you have mastered the react js and are familiar with umiJS.