I developed a multiplayer card game and therefore used a websocket. To implement the websocket in php, I used this library
I'v put it to my ubuntu server and the program works fine on Chrome Browser and in Firefox (The frontend is implemented using Javascript). Using the Edge Browser, there is an error stating "ReferenceError: WebSocket is undefined". But on the internet I have read that Edge should normally support websockets.
I already checked, whether the document mode is another IE version, but it is set to edge as well. The exact version is 11.0.0600.18537.
The following is my code (althoug I don't think that is is a problem with it as it works in the other browsers)
connectToSocket=function() {
var host = "ws://[host]:9000/echobot";
try
{
socket = new WebSocket(host);
console.log('WebSocket - status ' + socket.readyState);
...
}
catch(ex){
console.log('some exception : ' +ex);
}
Does anybody know what could be the issue with Edge?
Microsoft Edge 38.14393.0.0
however this is going to change soon as a new Release of windows 10 is due – Buzzer