lib/websocket_td.rb in websocket-td-0.0.4 vs lib/websocket_td.rb in websocket-td-0.0.5

- old
+ new

@@ -64,12 +64,13 @@ #+type+:: :text or :binary, defaults to :text def send(data, type = :text) if IS_WINDOWS do_send(data, type) #fork not supported on windows else - fork do + pid = fork do do_send(data, type) end + Process.detach(pid) end end ## #sets a Proc to be executed when the connection is opened and ready for writing \ No newline at end of file