Websocket testing

#1

How can I test websocket Controller ?

0 Likes

#2

You may write a simple webpage with the Adonis websocket client: https://adonisjs.com/docs/4.1/websocket-client

0 Likes

#3

This is not an acceptable solution. How can I write functional tests for websocket controller ? For HTTP there is a client object.

0 Likes

#4

First, I suggest you to declare you question clearly next time.
Just one line

How can I test websocket Controller ?

No one will know what tests that you are expecting.

Then now for the suggested solution is try to learn write test from @virk

1 Like