handlesWebSocket property
bool
get
handlesWebSocket
Whether this service accepts WebSocket connections — i.e. an
onConnection handler was supplied. When false, WebSocket upgrades
routed to this service are rejected by handleConnection.
Implementation
bool get handlesWebSocket => _onConnection != null;