Difference between socket and websocket?

前端 未结 5 982
逝去的感伤
逝去的感伤 2020-11-28 17:36

I\'m building web app that needs to communicate with another application using socket connections. This is new territory for me, so want to be sure that sockets are differen

5条回答
  •  甜味超标
    2020-11-28 18:06

    Websockets use sockets in their implementation. Websockets are based on a standard protocol (now in final call, but not yet final) that defines a connection "handshake" and message "frame." The two sides go through the handshake procedure to mutually accept a connection and then use the standard message format ("frame") to pass messages back and forth.

    I'm developing a framework that will allow you to communicate directly machine to machine with installed software. It might suit your purpose. You can follow my blog if you wish: http://highlevellogic.blogspot.com/2011/09/websocket-server-demonstration_26.html

提交回复
热议问题