@r3droger/ngx-regex-to-socketio
v1.0.4
Published
Angular Socket Interface with Observables ``` @dependecies @r3droger/ngx-regex-to-socket ```
Downloads
2
Readme
Ngx Regex To SocketIO
Angular Socket Interface with Observables
@dependecies
@r3droger/ngx-regex-to-socket
* @ngdoc overview
* @name reyramos.socket
*
*
* @description
* # SockIO socket management service
*
* Creates SockIO socket connection to server, on socket.send(eventType[optional],data).then(function(data){}),
* It will attach a $q service,
* https://docs.angularjs.org/api/ng/service/$q
*
* socket.send(eventType[optional],data).then(function(data){})
* EventType are optional, the socket server will add a promise_id for $q functionality
* Since socket server are asynchronous, return messages can return out of order. The promise_id, will determine
* the send messages and promise for each.
*
* Server:
* The server will need to return the promise_id send from message to keep the message in order. See EX: server.js
*