I have a problem with xhr-polling.Xhr have 5 connections limit.When I looking for a solution,I found that example on github.
https://gist.github.com/jmyrland/4639758
There are 2 codes,I am thinking the first code (ex.js) is server,second code is client(ex-test.js) But when I add this line : "require(socket.io-client)" to the client code,I'm getting "require is not defined" error.How can I use require command on client ?
Ps:I installed socket.io-client.