vti / protocol-websocket

Protocol::WebSocket
Other
40 stars 27 forks source link

Disable the debug #30

Open user1020 opened 10 years ago

user1020 commented 10 years ago

Thanks for creating the modules and examples. I followed the example "https://github.com/vti/protocol-websocket/blob/master/examples/anyevent-http-server.pl" and really like it.

There is a minor issue, on the console, it keeps printing some debugging messages. Wonder if there is a way to turn off the debug messages.

Thanks!

$> perl anyevent-http-server.pl
WebSocket RFC: Version 13
00995028(4) 127.0.0.1:35665 - WebSocket version 13
00995028(4) 127.0.0.1:35665 - [101] - /
00995028(4) 127.0.0.1:35665 WS13  -> [TEXT] 6b (Hi you)
00995028(4) 127.0.0.1:35665 WS13 <-  [TEXT] 8b (Hi you)
00995028(4) 127.0.0.1:35665 WS13  -> [CLOSE] 2b
00995028(4) 127.0.0.1:35665 WS13 <-  [CLOSE] 2b