node.js - possible web protocols in javascript -


what alternatives http (per xmlhttprequest) when establishing server connection in javascript? 1 know websocket protocol (per websocket). corresponding secure variants https , wss included.

would possible choose arbitrary protocol javascript? how communicate ntp, imap, udp etc. -services example in node.js?

from node.js, can pretty anything. e.g. udp directly supported (dgram module shipped node.js), , npm has plethora of third-party modules many other protocols, such smtp, imap, ftp , xmpp; see https://github.com/joyent/node/wiki/modules 1 list. , if can't find ready made module favorite protocol, can implement 1 yourself.

now when comes browsers, more limited. listed know (browser plugins excluded, of course). you'd need connect proxy server http(s) or ws(s) , actual protocol stuff there.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -