Problem with web socket with my external API

When I test with the api locally it works, but when I put it on the server, it always gives the error “adonis: websocket join error packet”

does anyone know how to solve this ??

connection code in the client application:

        var whats
        const ws = Ws('ws://')
        const token = Auth.getToken()

        whats = ws.getSubscription('whatsapp') || ws.subscribe('whatsapp')


What is your server listening on? It’s the same port and is server set to listen for
Do you have any proxies?