PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. 'use strict';
  2. angular.module('socketMock', [])
  3. .factory('socket', function() {
  4. return {
  5. socket: {
  6. connect: function() {},
  7. on: function() {},
  8. emit: function() {},
  9. receive: function() {}
  10. },
  11. syncUpdates: function() {},
  12. unsyncUpdates: function() {}
  13. };
  14. });