SSE (server sent events) is a html5 feature. server response content type text/event-stream. js must instantiate an EventSource object. Easilt polyfilled for older browsers?
web sockets are a standardized way to use a TCP socket through which messages can be sent full duplex
lifetime of a web socket: http handshake, data exchange, close. all inside the same TCP socket.
message is composed out of multiple frames with header bits to determine last frame. text msg converted to binary
realtime web apps: polling, long polling, sse and signalr. named transports, fallback mechanism integrated from most efficient to polling.
client side signalr libraries?
uses RPC for communication.
hub server side class that sends/receives messages to/from clients.
protocol is the serialization format: msgpack Compare with protobuf, JSON, ZeroFormatter. Microsoft.AspNetCore.SignalR.Protocols.[Json|MessagePack|NewtonsoftJson]. MessagePackHubProtocolsrc, proj, DI extensions, json hub protocol impl