Title | License | API |
Centrifuge | MIT | Python, Ruby, Java, PHP |
dklab_realplexor | GPL | Php |
Nginx Push Stream Module | GPL | REST API |
APE Project | GPL | REST API |
comet-server.ru | As a service With installation on the servers | Delphi, C, C ++, Eiffel, Java, Lisp, Perl, PHP, Python, Ruby, Smalltalk, Node.js, Bash, Component Pascal and Tcl (All languages ​​for which there is a MySQL client) |
fanout.io | As a service With installation on the servers | Python, Ruby, PHP, Node, Go, Django |
pusher.com | As a service | REST API and libraries for Ruby, PHP, .NET, Node.js, Python |
hydna.com | As a service | C ++, Erlang, Go (Push only), Java, JavaScript, Julia (Push only), Lua (Push only), .NET, Node.js, Objective-C, PHP (Push only), Python (Push only), Ruby (Push only) |
tambur.io | As a service | Ruby, Python, PHP, Java, Erlang |
<!DOCTYPE HTML> <html> <head> <!-- --> <script src="//comet-server.ru/CometServerApi.js" type="text/javascript"></script> <script src="//comet-server.ru/doc/CometQL/simplePhpChat/jquery.min.js" type="text/javascript"></script> </head> <body> <!-- --> <div id="textHolder" style="margin-top:10px; border:1px solid #000;padding:10px;"></div> <hr> <input type="text" id="msgText" placeholder=" "><input type="button" value="" onclick="sendMsg();"> <a href="http://comet-server.ru/wiki/doku.php/comet:cometql">CometQL</a>. CometQL - api MySQL. <script type="text/javascript"> $(document).ready(function(){ /** * SimplePhpChat */ CometServer().subscription("SimplePhpChat", function(event){ console.log(" SimplePhpChat", event.data, event); $("#textHolder").html( $("#textHolder").html() +"<hr>"+event.data); }) /** * . . * dev_id */ CometServer().start({dev_id:15 }) }) function sendMsg(){ var text = $("#msgText").val(); jQuery.ajax({ url: "//comet-server.ru/doc/CometQL/simplePhpChat/sendMsgToChat.php", type: "GET", data:"text="+encodeURIComponent(text), success: function(){ $("#msgText").val(''); } }); } </script> </body> </html>
<?php // ( comet-server.ru ) // 15 // lPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8 // CometQL_v1 $link = mysqli_connect("app.comet-server.ru", "15", "lPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8", "CometQL_v1"); // mysqli_query ( $link, "INSERT INTO pipes_messages (name, event, message)VALUES('SimplePhpChat', '', '".mysqli_real_escape_string($link,htmlspecialchars($_GET['text']))."' );" );
Source: https://habr.com/ru/post/273573/
All Articles