I have an array of coordinates:
/** * Стандартное рассположение шашек */ Checkers.prototype.coord = function() { // координаты шашек var checkers_coords = new Array(); checkers_coords['white'] = ["5.0","5.2","5.4","5.6", "6.1","6.3","6.5","6.7", "7.0","7.2","7.4","7.6"]; checkers_coords['black'] = ["0.1","0.3","0.5","0.7", "1.0","1.2","1.4","1.6", "2.1","2.3","2.5","2.7"]; return checkers_coords; } I am trying to send this array to the client: socket.emit ('start', game.coord ())
However, it comes up empty, although it is printed on the server as needed. Tell me please what's the problem?