How should I test a Websocket controller


#1

I’ve tried to use the client websocket lib but it appears to be designed just for the frontend

.../node_modules/@adonisjs/websocket-client/dist/Ws.es.js:2507
export default index;
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'

Is there any other way? Any suggestion would be appreciatted. Thanks.