examples/chatserver.rb
### Disconnect the specified user after sending them the specified +msg+.
Disconnect the specified user after sending them the specified +msg+.
Disconnect the specified user after sending them the specified + msg + .
def disconnect_user( user, msg='' )
		@users -= [ user ]
		@reactor.unregister( user.socket )
		user.disconnect( msg )
		self.broadcast_msg( "#{user.to_s} Disconnected." )
	end
def disconnect_user ( user , msg = '' ) @users -= [ user ] @reactor . unregister ( user . socket ) user . disconnect ( msg ) self . broadcast_msg ( "#{user.to_s} Disconnected." ) end
Disconnect the specified user after sending them the specified +msg+.
Disconnect the specified user after sending them the specified + msg + .
user
msg