Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: shawnmclean/chatsy
base: 18aa14f7a8
...
head fork: shawnmclean/chatsy
compare: ca48e0440f
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
4 lib/manager.js
@@ -6,6 +6,10 @@
Manager.name = 'Manager';
+ Manager.prototype.users = [];
+
+ Manager.prototype.rooms = [];
+
function Manager(socket, options) {
this.socket = socket;
this.options = options;
View
27 lib/services/authorizeService.js
@@ -0,0 +1,27 @@
+// Generated by CoffeeScript 1.3.1
+(function() {
+ var AuthorizeService;
+
+ AuthorizeService = (function() {
+
+ AuthorizeService.name = 'AuthorizeService';
+
+ function AuthorizeService() {}
+
+ AuthorizeService.prototype.canJoinServer = function(user, callback) {
+ if (callback) {
+ return callback(true);
+ }
+ };
+
+ AuthorizeService.prototype.canJoinRoom = function(user, room, callback) {
+ if (callback) {
+ return callback(true);
+ }
+ };
+
+ return AuthorizeService;
+
+ })();
+
+}).call(this);
View
13 src/services/authorizeService.coffee
@@ -0,0 +1,13 @@
+##Default Authorization service for chatsy
+class AuthorizeService
+
+ ##Verifies the user can join the chat server
+ ##@param {User} the user object
+ ##@param {callback} the callback that takes a bool as parameter
+ canJoinServer: (user, callback) ->
+ ##always allow all users
+ callback(true) if callback
+
+ canJoinRoom: (user, room, callback) ->
+ ##always allow all users
+ callback(true) if callback

No commit comments for this range

Something went wrong with that request. Please try again.