I want to use http2 protocol in my new project. What I want to achieve is running both http and http2 servers on one domain and one port (if it is possible). Then if comes the client which doesn't understand http2 the communication will stay only in http land. But if new browser comes server would send 101 Switching Protocols
and start communicate using http2. Is this possible in node.js? How? Do you need two different ports? Or can both server protocols sit on one port?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.