How to get a client to connect to WS

I have setup the basic settings to get a web socket up and running.

When I connect with a client, I get the following message from the server

{"t":0,"d":{"connId":"cjylqvtsd0000afsl42vr01aj","serverInterval":30000,"serverAttempts":3,"clientInterval":25000,"clientAttempts":3}}

If I then send the following

{
  "t": 7,
  "d":{
    "topic":"chat",
    "data":"Hello"
  }
}

Nothing happens.

Here is my socket.js file

'use strict'

/*
|--------------------------------------------------------------------------
| Websocket
|--------------------------------------------------------------------------
|
| This file is used to register websocket channels and start the Ws server.
| Learn more about same in the official documentation.
| https://adonisjs.com/docs/websocket
|
| For middleware, do check `wsKernel.js` file.
|
*/

const Ws = use('Ws')

Ws.channel('chat', ({ socket }) => {
    console.log("A connection was made")
  })

Hi @SouthRibbleTech

Can you share your frontend code too?