How to implement datatables with socket.io

How to implement datatables with socket.io

jemzjemz Posts: 131Questions: 40Answers: 1

I want to use datables in socket.io, my problem is that I don't where should I put the listener of the events.

socket.on('.....');

by the way if using socket.io do I need still to put the ajax in the configuration of datatables ?.

Thank you in advance.


$(document).ready(function() { $('#example').dataTable( { "ajax": { url:"./getEmployee.php" }, "serverside": true, "deferRender": true, "columns": [ {"data": "employeeid"}, {"data": "empoloyeename"}, {"data": "hiredate"}, ] } ); } );

Answers

  • allanallan Posts: 61,950Questions: 1Answers: 10,158 Site admin

    I've just added some thoughts on this in your other thread on this topic.

    I seriously doubt that you want to use server-side processing with socket, but it is possible if you need to use 50k+ rows.

    Allan

This discussion has been closed.