[Groonga-commit] groonga/express-kotoumi [master] Socket.io adaptor always require a server

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 6 12:30:21 JST 2013


YUKI Hiroshi	2013-02-06 12:30:21 +0900 (Wed, 06 Feb 2013)

  New Revision: 12685453fb3815dfb0aff47d463cc016195ad344
  https://github.com/groonga/express-kotoumi/commit/12685453fb3815dfb0aff47d463cc016195ad344

  Log:
    Socket.io adaptor always require a server

  Modified files:
    lib/frontend/socket.io-adaptor.js

  Modified: lib/frontend/socket.io-adaptor.js (+3 -0)
===================================================================
--- lib/frontend/socket.io-adaptor.js    2013-02-06 12:28:55 +0900 (6eb7257)
+++ lib/frontend/socket.io-adaptor.js    2013-02-06 12:30:21 +0900 (b5b6e5e)
@@ -26,6 +26,9 @@ exports.register = function(application, server, params) {
   if (!connection)
     throw new Error('Connection to the backend is required!');
 
+  if (!server)
+    throw new Error('A server instance is required!');
+
   function createRequestHandler(command, socket, requestBuilder) {
     return (function(data) {
       if (requestBuilder)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index