#NEWLINE# def proxy_connection( self , environ , start_response ) : #NEWLINE# #INDENT# @ websocket . WebSocketWSGI #NEWLINE# def _handle( client ) : #NEWLINE# #INDENT# server = eventlet . connect ( ( client . environ [ 'vnc_host' ] , client . environ [ 'vnc_port' ] ) ) #NEWLINE# t1 = eventlet . spawn ( self . ws2sock , client , server ) #NEWLINE# t2 = eventlet . spawn ( self . sock2ws , server , client ) #NEWLINE# t1 . wait ( ) #NEWLINE# t2 . wait ( ) #NEWLINE# #UNINDENT# _handle ( environ , start_response )