This commit is contained in:
thosakwe 2017-02-11 22:06:40 -05:00
parent 23bdb20846
commit c460d26a7a
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
# angel_websocket # 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) [![build status](https://travis-ci.org/angel-dart/websocket.svg)](https://travis-ci.org/angel-dart/websocket)
WebSocket plugin for Angel. WebSocket plugin for Angel.

View file

@ -4,7 +4,7 @@ library angel_websocket.browser;
import 'dart:async'; import 'dart:async';
import 'dart:html'; import 'dart:html';
import 'package:angel_client/angel_client.dart'; 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/web_socket_channel.dart';
import 'package:web_socket_channel/html.dart'; import 'package:web_socket_channel/html.dart';
import 'base_websocket_client.dart'; import 'base_websocket_client.dart';
@ -15,7 +15,7 @@ final RegExp _straySlashes = new RegExp(r"(^/)|(/+$)");
/// Queries an Angel server via WebSockets. /// Queries an Angel server via WebSockets.
class WebSockets extends BaseWebSocketClient { class WebSockets extends BaseWebSocketClient {
WebSockets(String path) : super(new http.Client(), path); WebSockets(String path) : super(new http.BrowserClient(), path);
@override @override
Future<WebSocketChannel> getConnectedWebSocket() { Future<WebSocketChannel> getConnectedWebSocket() {

View file

@ -2,7 +2,7 @@ name: angel_websocket
description: WebSocket plugin for Angel description: WebSocket plugin for Angel
environment: environment:
sdk: ">=1.19.0" sdk: ">=1.19.0"
version: 1.0.0-dev+8 version: 1.0.0-dev+9
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_websocket homepage: https://github.com/angel-dart/angel_websocket
dependencies: dependencies: