import 'socket.io-client' ; ngdoc name requires description Base class for a service which communicates with the server via HTTP. The service contains
 * all the HTTP methods and delegates to angular's $http service. An extension of this service
 * can implement its own logic and internally will have access to $http service's methods.
 *
 *  https export class HttpService { $http : ng . IHttpService ; static $inject = [ '$http' ] ; constructor ( $http ) { this . $http = $http ; } get ( url , config = { } ) { return this . $http . get ( url , config ) ; } delete ( url , config = { } ) { return this . $http . delete ( url , config ) ; } head ( url , config = { } ) { return this . $http . head ( url , config ) ; } jsonp ( url , config = { } ) { return this . $http . jsonp ( url , config ) ; } post ( url , data = { } , config = { } ) { return this . $http . post ( url , data , config ) ; } put ( url , data = { } , config = { } ) { return this . $http . put ( url , data , config ) ; } patch ( url , data = { } , config = { } ) { return this . $http . patch ( url , data , config ) ; } } export class SocketService { $socket : SocketIOClient . Socket ; createConnection ( endPoint ) { this . $socket = io . connect ( endPoint ) ; } on ( event , callback ) { this . $socket . on ( event , callback ) ; } emit ( event , data = { } , callback ) { this . $socket . emit ( event , [ data , callback ] ) ; } } export class BufferService { } export class SoapService { }