Commits

Ginés Martínez Sánchez committed ddcd955 Draft

rawwebsocket fails

Comments (0)

Files changed (1)

ginsfsm/protocols/sockjs/server/c_transport_websocket.py

         try:
             self.write_message(message, binary)
         except IOError:
-            self.context.sockjs_server.gaplic.add_callback(self.on_close)
+            self.context.gaplic.add_callback(self.on_close)
 
     def session_closed(self):
         # If session was closed by the application, terminate websocket
         )
         self.session = None
         self.active = True
+        print "YYYYYYYYYYYYYYYYYYYYYYYy"
 
     def execute(self):
         print "XXXXXXXXXXXXXXXXXXXX"
         try:
             self.write_message(message, binary)
         except IOError:
-            self.context.sockjs_server.gaplic.add_callback(self.on_close)
+            self.context.gaplic.add_callback(self.on_close)
 
     def session_closed(self):
         # If session was closed by the application, terminate websocket