examples/chatserver.rb
### Disconnect all connected users after sending them the specified +msg+.
Disconnect all connected users after sending them the specified +msg+.
Disconnect all connected users after sending them the specified + msg + .
def disconnect_all_users( msg )
		@users.each do |user|
			@reactor.unregister( user.socket )
			user.disconnect( msg )
		end
		@users.clear
	end
def disconnect_all_users ( msg ) @users . each do | user | @reactor . unregister ( user . socket ) user . disconnect ( msg ) end @users . clear end
Disconnect all connected users after sending them the specified +msg+.
Disconnect all connected users after sending them the specified + msg + .
msg