Not documented.

Source

static WebSocket internalCreateWebSocket() {
  return new WebSocket._internalWrap();
}