diff --git a/README.md b/README.md index 1247832c..99a824ed 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # angel_websocket -[![1.0.0-dev+8](https://img.shields.io/badge/pub-1.0.0--dev+8-red.svg)](https://pub.dartlang.org/packages/angel_websocket) +[![1.0.0-dev+9](https://img.shields.io/badge/pub-1.0.0--dev+9-red.svg)](https://pub.dartlang.org/packages/angel_websocket) [![build status](https://travis-ci.org/angel-dart/websocket.svg)](https://travis-ci.org/angel-dart/websocket) WebSocket plugin for Angel. diff --git a/lib/browser.dart b/lib/browser.dart index cbde5c23..9533a745 100644 --- a/lib/browser.dart +++ b/lib/browser.dart @@ -4,7 +4,7 @@ library angel_websocket.browser; import 'dart:async'; import 'dart:html'; import 'package:angel_client/angel_client.dart'; -import 'package:http/http.dart' as http; +import 'package:http/browser_client.dart' as http; import 'package:web_socket_channel/web_socket_channel.dart'; import 'package:web_socket_channel/html.dart'; import 'base_websocket_client.dart'; @@ -15,7 +15,7 @@ final RegExp _straySlashes = new RegExp(r"(^/)|(/+$)"); /// Queries an Angel server via WebSockets. class WebSockets extends BaseWebSocketClient { - WebSockets(String path) : super(new http.Client(), path); + WebSockets(String path) : super(new http.BrowserClient(), path); @override Future getConnectedWebSocket() { diff --git a/pubspec.yaml b/pubspec.yaml index d979743c..f1e160a2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: angel_websocket description: WebSocket plugin for Angel environment: sdk: ">=1.19.0" -version: 1.0.0-dev+8 +version: 1.0.0-dev+9 author: Tobe O homepage: https://github.com/angel-dart/angel_websocket dependencies: