Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Getting 1006 code on iOS #92

@danishashraf047

Description

@danishashraf047

I'm getting 1006 code on iOS. It is working fine on Android. You can also see in code if I'm doing wrong so please let me correct.

            var mySocket = new WebSocket("wss://eu.rtm.tiledesk.com/v2/ws/?token=JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZWJkODkwMjkyYmVmZTAwMTkwNTQ5NzMiLCJlbWFpbCI6ImFuZHJlYWxlb0B0aWxlZGVzay5jb20iLCJmaXJzdG5hbWUiOiJBbmRyZWEiLCJsYXN0bmFtZSI6IkxlbyIsImVtYWlsdmVyaWZpZWQiOnRydWUsImlhdCI6MTYwMTQ3NTYyMywiYXVkIjoiaHR0cHM6Ly90aWxlZGVzay5jb20iLCJpc3MiOiJodHRwczovL3RpbGVkZXNrLmNvbSIsInN1YiI6InVzZXIiLCJqdGkiOiJlMGZjYjkxZC1mNzg5LTRiZDItODUyMC0zZDlkNzNiNGEyMDUifQ.ZGdoGhiW80DpPBiJ5WL3TEogwj3u1zSTtDseLUf2U0s", []);
            mySocket.addEventListener('open', function (evt) { console.log("We are Open"); });
            mySocket.addEventListener('message', function (evt) { console.log("We got a message: ", (evt as any).data); (evt as any).target.close(); });
            mySocket.addEventListener('close', function (evt) { console.log("The Socket was Closed:", evt.code, evt.reason); console.log(evt) });
            mySocket.addEventListener('error', function (evt) { console.log("The socket had an error", (evt as any).error); console.log(evt) });

It would be great if you could solve this issue. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions