0.4.2 • Published 6 years ago

ngx-websocket v0.4.2

Weekly downloads
25
License
MIT
Repository
github
Last release
6 years ago

Ngx-Websocket

a simple websocket connection manager for angular4+

WARNING

How To Install

npm install ngx-websocket --save

How To Use

  1. import NgxWebSocketModule
import { NgxWebSocketModule } from "ngx-websocket";
  1. build connection
//test-component.ts
import { Socket, NgxWebsocketService } from "ngx-websocket";

export class TestComponent {
    constructor(
        private socketSer: NgxWebsocektService;
        private socket: Socket
    ) {}

    open(): void {
        service.open("ws://echo.websocket.org")
            .then((d, socket) => socket.send("hi"))
                .message(d => d + " siri").then(d => console.log(d));
    }
}

TODO

  1. error or close catch handler
  2. finally handler
0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago