gnet-io / gnet-examples

Examples of gnet
MIT License
245 stars 77 forks source link

The server only replied to the requests of some browser clients #17

Open aiaawwoww opened 2 years ago

aiaawwoww commented 2 years ago

I use this websocket example. The browser client sends it 100 times, but only replies a few times


  for (let i = 0 ;i < 100 ; i++){
            doSend(i)
        }
function doSend(message) {
        websocket.send(JSON.stringify( {"code":1006,"symbol":message+""}));
    }

The server only replied to some requests