Skip to content

Websocket connection to xxx failed on Chromium #20

@putuyoga

Description

@putuyoga

Hi, current i'm developing mobile apps (Xamarin) using disqus javascript mobile embed solution. While on Windows Phone work fine, on Android (minimum 5.0) WebView based on Chromium, this solution never work flawlessly.

I can login and success, but when back to embed page, i'm still not logged in. When try login again, i automatically back to embed page without enter credential again, and i assume session or cookies is work fine.

Trying see debug output, i've found this:

[chromium] [INFO:CONSOLE(0)] "Scripts may close only the windows that were opened by it.", source: (0)
[chromium] [INFO:CONSOLE(1)] "WebSocket connection to 'ws://realtime.services.disqus.com/ws/2/thread/3673053070?' failed: Error during WebSocket handshake: Unexpected response code: 400", source: http://a.disquscdn.com/next/embed/lounge.bundle.20b16d338a6075d33134dcc2ade8eb76.js (1)

Not sure, what is that, but i think the cause of this problem is disqus trying use websocket that not work on chromium ?

Temporary solution i have found is set my android target build to 4.4 and it will work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions