Closed
Description
stackoverflow: https://stackoverflow.com/questions/45433580/why-not-support-standard-client-api
I want to:
- report a bug
Current behaviour
<script type="text/javascript">
var socket = new WebSocket('wss://ws.acmcoder.com:3333');
socket.onopen = function(event) {
socket.send('I am the client and I\'m listening!');
socket.onmessage = function(event) {
console.log('Client received a message',event);
};
socket.onclose = function(event) {
console.log('Client notified socket has closed',event);
};
//socket.close()
};
</script>
it displays: (Opcode -1)
By the way, If run the web socket server with Workman, It works.
Setup
- OS: Windows 10
- browser: chrome
- socket.io version: 2.0.3
Metadata
Metadata
Assignees
Labels
No labels