WebSocket的端口是什么? [英] What is the port of WebSocket?

查看:1469
本文介绍了WebSocket的端口是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. WebSocket的端口是什么?

  1. What is the port of WebSocket?

WebSocket使用什么协议?

What protocol does WebSocket use?

当防火墙阻止80个端口和443个端口之外的所有端口时,WebSocket是否可以工作?

Does WebSocket work when the firewall blocks all but 80 and 443 ports?

推荐答案

WebSocket的端口是什么?

What is the port of WebSocket?

WebSocket握手通过HTTP操作,因此端口是HTTP/WebSocket服务器要使用的端口.对于未加密的HTTP,标准为80;对于加密的HTTPS,标准为443.

The WebSocket handshake operates over HTTP, so the port is whatever the HTTP/WebSocket server wants to use. The standard is 80 for unencrypted HTTP, and 443 for encrypted HTTPS.

WebSocket使用什么协议?

What protocol does WebSocket use?

"WebSocket协议"规范为 RFC 6455 .

The "WebSocket Protocol" specification is RFC 6455.

当防火墙阻止80和443个端口以外的所有端口时,WebSocket是否可以工作?

Does WebSocket work when the firewall blocks all but 80 and 443 ports?

是的,如果HTTP/WebSocket服务器决定使用这些端口进行WebSocket连接.

Yes, if the HTTP/WebSocket server decides to use those ports for WebSocket connections.

这篇关于WebSocket的端口是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆