nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
websocket: Fix for use with new version of Streams
[nit.git]
/
lib
/
websocket
/
examples
/
websocket_server.nit
diff --git
a/lib/websocket/examples/websocket_server.nit
b/lib/websocket/examples/websocket_server.nit
index
089df1b
..
80c9d25
100644
(file)
--- a/
lib/websocket/examples/websocket_server.nit
+++ b/
lib/websocket/examples/websocket_server.nit
@@
-39,7
+39,8
@@
while not sock.listener.closed do
sock.write(msg)
end
if sock.can_read(10) then
- msg = sock.read_line
+ msg = ""
+ while sock.can_read(0) do msg += sock.read(100)
if msg != "" then print msg
end
end