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


If I then send the following

  "t": 7,

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.
| For middleware, do check `wsKernel.js` file.

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

Hi @SouthRibbleTech

Can you share your frontend code too?