supported property

bool get supported

Checks if this type is supported on the current platform.

Implementation

static bool get supported =>
    JS('bool', 'typeof window.WebSocket != "undefined"');