Bug? Error in b4j_ws.js

billyrudi

Active Member
Licensed User
Longtime User
Hi,
in b4j_ws.js if webapp is listening on port 80 internet explorer rise an error.
to correct it you must change
B4X:
 fullpath = ((l.protocol === "https:") ? "wss://" : "ws://") + l.hostname + ":" + l.port + absolutePath;

to

B4X:
if  (l.port != 0) {
                fullpath = ((l.protocol === "https:") ? "wss://" : "ws://") + l.hostname + ":" + l.port + absolutePath;
            } else {
                fullpath = ((l.protocol === "https:") ? "wss://" : "ws://") + l.hostname  + absolutePath;
            }
to ensure that the : are not added to the default n 80 port that is blank.

regards Paolo
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…