How can I communicate over TCP sockets from JavaScript?

后端 未结 4 625
小鲜肉
小鲜肉 2020-12-01 03:58

I\'m thinking about how limiting it is for AJAX apps to have to poll for updates, when what would be ideal is for javascript to be able to set up a real two way connection t

4条回答
  •  青春惊慌失措
    2020-12-01 04:14

    Here is an implementation with a similar approach:

    • socketjs

    It uses a Java Applet and bridges its API to JavaScript, interesting...

    And here another one:

    • jSocket

    This one is a wrapper of the Actionscript 3 Socket API, bridged to JavaScript...

提交回复
热议问题