Pregunta

Entre las mejoras anunciadas para WCF, veo esto: Websockets support to enable true bidirectional communication over ports 80 and 443 with performance characteristics similar to the TCP transport.

Eso suena sospechamente como la conexión HTTP 1.1 TCP persistente se podría usar para presionar los datos al cliente.¿Eso es realmente implícito o destinado?¿O es Signalr sigue siendo el único juego de MS-Ofrecido para esa característica?

¿Fue útil?

Solución

.NET 4.5 also includes WebSocket client and server (server on Win 8 only); the server includes asp.net and HttpListener implementations, both allowing push to clients. If you want WebSocket, personally I use that rather than WCF - less abstractions.

Until 4.5, I think you are correct as far as MS-provided implementations are concerned.

There are other implementations: SuperWebSocket should work fine. I hand-rolled the WebSocket implementation we use here - it wasn't overly taxing, although I'd like to replace it with HttpListener when that is available.

Re persistent http 1.1 tcp connections: It should be noted that once the initial handshake is complete, it is not a http connection; it is WebSocket over tcp.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top