Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing options.

  • Loading branch information...
commit 7926d967393dbf2306bfb2d0b4c159dbd0f2654a 1 parent 54871bc
Guillermo Rauch rauchg authored
Showing with 28 additions and 1 deletion.
  1. +28 −1 lib/server.js
29 lib/server.js
View
@@ -1,4 +1,11 @@
+/**
+ * Socket.IO server.
+ *
+ * @param {Object} options
+ * @api public
+ */
+
function Server (opts) {
this.clients = {};
this.clientsCount = 0;
@@ -35,15 +42,35 @@ Server.prototype.onConnection = function (conn) {
});
};
+/**
+ * Gets a client.
+ *
+ * @api public
+ */
+
Server.prototype.socket =
Server.prototype.client = function (id) {
return this.clients[id];
};
-Server.prototype.emit = function (first_argument) {
+/**
+ * Emits to all clients.
+ *
+ * @api private
+ */
+
+Server.prototype.emit = function () {
};
+/**
+ * Sets the room to broadcast to.
+ *
+ * @param {String} room name
+ * @api public
+ */
+
+Server.prototype.to =
Server.prototype.in = function () {
};
Please sign in to comment.
Something went wrong with that request. Please try again.