Commits

Ginés Martínez Sánchez committed 49e1cac Draft

ping pong of websocket fixed

  • Participants
  • Parent commits 7fe2110
  • Tags 0.5.2

Comments (0)

Files changed (3)

 ==================
 
 Removing ghtml. Moved to the new project ghtml.
+
+0.5.2 (2013-04-22)
+==================
+
+Sockjs server, and pure websocket client/server implemented.

ginsfsm/__init__.py

 """
 A python library to do development based in Finite State Machines.
 """
-__version__ = '0.5.1'
+__version__ = '0.5.2'
 __title__ = 'ginsfsm'
 __author__ = 'Ginés Martínez'
 __license__ = 'MIT License'

ginsfsm/protocols/sockjs/server/c_websocket.py

         cur_frame.busy = False
 
     def ping(self):
-        self._write_frame(True, OPCODE_CONTROL_PING, '')
+        self._write_frame(True, OPCODE_CONTROL_PING, b'')
 
     def pong(self):
-        self._write_frame(True, OPCODE_CONTROL_PONG, '')
+        self._write_frame(True, OPCODE_CONTROL_PONG, b'')
 
-    def send_close(self, status=STATUS_NORMAL, reason=''):
+    def send_close(self, status=STATUS_NORMAL, reason=b''):
         if status < 0 or status > 0xFFFF:
             raise ValueError("code is invalid range")
         self._write_frame(