Hi, everyone.
I was using kdb as a websocket server to push some realtime data to HTML pages but I encountered some compatibility issues.
My q.exe started with -u qusers option, so I added authentication info in websocket URL like:
var ws=new WebSocket('ws://myusername:mypassword@127.0.0.1:54321')
myusername:mypassword is the authentication info in qusers file, 54321 is the port number of kdb.
It worked fine in both Chrome (version 67.0.3396.87) and Firefox (version 59.0.2). HTML page can establish websocket connection and receive data from kdb successfully.
But I get 401 unauthorized in Safari.
Someone on github says Safari doesn’t support self-signed certificates for websocket. Here is the link
So I tried starting kdb without -u option then I found websocket worked fine.
I thought there are plenty of kdb users who are also an Apple user and this must be common.
Is there any workaround if I have to start it with -u option or any other suggestions?
Thank you.