/app/templates/client/components/socket(socketio)/socket.mock.js
https://gitlab.com/javajamesb08/generator-angular-fullstack · JavaScript · 16 lines · 14 code · 2 blank · 0 comment · 0 complexity · 4a82badfd420b75a0c7d8ef211bab379 MD5 · raw file
- 'use strict';
- angular.module('socketMock', [])
- .factory('socket', function() {
- return {
- socket: {
- connect: function() {},
- on: function() {},
- emit: function() {},
- receive: function() {}
- },
- syncUpdates: function() {},
- unsyncUpdates: function() {}
- };
- });