Test WebSocket in PlayFramework

前端 未结 4 1811
梦如初夏
梦如初夏 2021-02-20 16:32

I have a WebSocket in my Play application and I want to write a test for it, but I couldn\'t find any example on how to write such a test. I found a discussion in the play-frame

4条回答
  •  梦如初夏
    2021-02-20 16:48

    Chrome provides a plugin to test websocket service.

    Edit

    So using the plugin (as shown in picture below) you can provide websocket url and the request data and send message to service. And message log shows the message sent from client and also service response.

    enter image description here

提交回复
热议问题