Hi All,
In javascript, I need to pass the url to kdb for establishing the connection.
function connect_kdb(){
if ("WebSocket" in window)
{
ws = new WebSocket("ws://127.0.0.1:6000");
ws.binaryType = 'arraybuffer';
ws.onopen=onopen;
ws.onclose=onclose;
ws.onmessage=onmessage;
ws.onerror=onerror;
}
else{
alert("WebSockets not supported on your browser.");
}
}
how to add username and password of kdb to web socket url?
The following format does NOT work.
ws = new WebSocket("ws://127.0.0.1:6000:username:password");
—
Roy Liu
--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
--
.z.pw:{[u;p] show u; show p; 1b}
q)`""Furthermore, the issue has fixed in Google Chrome.
On Thu, Feb 25, 2016 at 7:11 PM, Charles Skelton <cha...@kx.com> wrote:
I think they claimed to have fixed that in the meantime
On Thu, Feb 25, 2016 at 9:12 AM, Jack Andrews <eff...@gmail.com> wrote:
http://stackoverflow.com/questions/6714966/basic-authentication-for-websocketsit mentions the format 'ws://user:pass@127.0.0.1/')