Permalink
Browse files

Changing write() call to os.write().

  • Loading branch information...
spoletto committed Apr 23, 2012
1 parent 2a9ad1e commit 9e36a880f354db66d121e089ab6bd65ba9254700
Showing with 2 additions and 1 deletion.
  1. +2 −1 client/ws-server.py
View
@@ -43,10 +43,11 @@ def open(self):
print "connection is " + str(connection)
def on_message(self, message):
global tun
print "raw message: " + message
m = message.decode('base64')
print "message received from websocket: " + m
tun.write(m)
os.write(tun, m)
def on_close(self):
global connection

0 comments on commit 9e36a88

Please sign in to comment.