You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Melloware (Jira)" <de...@myfaces.apache.org> on 2025/04/14 12:10:00 UTC

[jira] [Created] (MYFACES-4720) WebSocket secure protocol

Melloware created MYFACES-4720:
----------------------------------

             Summary: WebSocket secure protocol
                 Key: MYFACES-4720
                 URL: https://issues.apache.org/jira/browse/MYFACES-4720
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 4.1.1, 4.0.3
            Reporter: Melloware


[~werpu] this was reported at Mojarra: https://github.com/eclipse-ee4j/mojarra/issues/5578

I believe MyFaces has the same issue in PushImpl.ts found here


{code:javascript}
export module PushImpl {

    const URL_PROTOCOL = DQ.global().location.protocol.replace("http", "ws") + "//";
{code}


I think this needs to change to...

{code:javascript}
const URL_PROTOCOL = DQ.global().location.protocol === "https:" ? "wss://" : "ws://";
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)