How to use socket.io-client in angular 4
问题 Server side is php laravel echo websocket and I am trying to connect by Angular 4. I tried using ng2-socket-io - npm and also laravel-echo - npm but none of them were successfully. If anyone know any documentation or tutorial how I can use it, please help 回答1: Hi @giga Working example is given below. SETUP npm i socket.io-client --save npm i @types/socket.io-client --save Server-side (nodejs) var express = require('express'); var path = require('path'); var app = express(); var server =