你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WebSocketOptions interface
Options to configure the channelling of the AMQP connection over Web Sockets.
Properties
web |
The WebSocket constructor used to create an AMQP connection over a WebSocket. This option should be provided in the below scenarios:
|
web |
Options to be passed to the WebSocket constructor when the underlying |
Property Details
webSocket
The WebSocket constructor used to create an AMQP connection over a WebSocket. This option should be provided in the below scenarios:
- The TCP port 5671 which is that is used by the AMQP connection to Event Hubs is blocked in your environment.
- Your application needs to be run behind a proxy server.
- Your application needs to run in the browser and you want to provide your own choice of Websocket implementation instead of the built-in WebSocket in the browser.
webSocket?: WebSocketImpl
Property Value
webSocketConstructorOptions
Options to be passed to the WebSocket constructor when the underlying rhea
library instantiates
the WebSocket.
webSocketConstructorOptions?: any
Property Value
any