message += '\r\n'
message += '\r\n'
request.connection.write(message)
- raise handshake.AbortedByUserException('Abort the connection') # Prevents pywebsocket from sending its own handshake message.
+ # Prevents pywebsocket from sending its own handshake message.
+ raise handshake.AbortedByUserException('Abort the connection')
def web_socket_transfer_data(request):